-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Forms] Fix PhpcrOdmQueryBuilderLoader and depend on symfony version that fixed DoctrineType #201
Conversation
foreach ($values as $val) { | ||
$qb->orWhere()->eq()->field($alias.'.'.$identifier)->literal($val); | ||
$where->same($val, $alias); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, this would just overwrite the value on the same criteria several times would it not? Shouldnt the ->orX
be in the loop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ups, i think you are right dan. @lsmith77 can you maybe add a second document to the fixtures and test with one and two ids? Right now we dont test that we actually filter vs just loading all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't appear to be the case. I have added another document to the fixtures and it seems to just work ..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, your right.
we only get this error on 2.4 .. why don't we get it on 2.3?
|
…that fixed DoctrineType
goody .. all green |
[Forms] Fix PhpcrOdmQueryBuilderLoader and depend on symfony version that fixed DoctrineType
supersedes #193