You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$res = $this->getVehicleRepo()->getQueryBuilder(
Spec::andX(
Spec::select('model'),
new IsNotSold(),
new JoinModelModifier(),
new ModelsBelongToMaker($makerId)
)
);
I'm going to select fields from the Model table, which is joined by new JoinModelModifier(), while all the selections are performed for the root alias, which comes from the ->getVehicleRepo, i.e. the Vehicle table.
Can't understand how to select such a data, except for doing two separate queries on both repos.
By the way with the classic doctrine I can achieve the desirable with
I have such a code
I'm going to select fields from the Model table, which is joined by
new JoinModelModifier()
, while all the selections are performed for the root alias, which comes from the->getVehicleRepo
, i.e. the Vehicle table.Can't understand how to select such a data, except for doing two separate queries on both repos.
By the way with the classic doctrine I can achieve the desirable with
The text was updated successfully, but these errors were encountered: