Associations to get the data via the API or the DAL.
$criteria->addAssociations([
'b2bOrderExtension.employee',
'b2bOrderExtension.salesRepresentative'
]);
{
associations: {
b2bOrderExtension: {
associations: {
employee: {},
salesRepresentative: {}
}
}
}
}
{
id: "...",
orderNumber: "...",
...,
extensions: {
b2bOrderExtension: {
employeeId: "...",
salesRepresentativeId: "...",
employee: {...},
salesRepresentative: {...},
...
}
}
}