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
Just for this example I save a Doctor entity with two Ordination relations with haveInRepository in my test.
But then there's no possibility to check for values of both ordinations
(so as a workaround, I could call the seeInRepository multiple times with a different relation's values …)
The problem is in the method \Codeception\Module\Doctrine2::_buildAssociationQuery
but I'm not really sure how to fix this for a PR. Anyone with more knowledge on this?
Example: a one-to-many relation (uni-directional, so implemented as many-to-many with join table):
Just for this example I save a
Doctor
entity with twoOrdination
relations withhaveInRepository
in my test.But then there's no possibility to check for values of both ordinations
This leads to
because of the nested structure.
What works is a check for a single relation:
(so as a workaround, I could call the
seeInRepository
multiple times with a different relation's values …)The problem is in the method \Codeception\Module\Doctrine2::_buildAssociationQuery
but I'm not really sure how to fix this for a PR. Anyone with more knowledge on this?
I guess this issue is somehow related to #16
The text was updated successfully, but these errors were encountered: