-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
DDC-3346: findOneBy returns an object with partial collection for the properties with mapping oneToMany/Fetch Eager #4144
Comments
Comment created by scaytrase: Still expiriencing it at 2.5.0-alpha (b889e18). findOneBy cuts many-to-many association with fetch eager by 'LIMIT 1' |
Comment created by @Ocramius: [~scaytrase] yeah, we don't have a fix for it yet: I suggest providing a PR with the failing test first, and if we can't get to it, trying to patch it yourself, or at least find out which code bit affects this behavior. |
Comment created by scaytrase: I'm finishing such PR now. Will supply it to github soon |
Comment created by scaytrase: here it is Here is the failed travis build |
Comment created by @doctrinebot: |
Comment created by @doctrinebot: |
Comment created by @doctrinebot: |
Comment created by @doctrinebot: |
Comment created by @doctrinebot: |
Comment created by @doctrinebot: |
Issue was closed with resolution "Fixed" |
Comment created by mbeccati: FYI the test is failing on: https://revive.beccati.com/bamboo/browse/PHP-DOCTR-PHP54-249/test/case/18357533 As far as I can tell from https://www.sqlite.org/lang_select.html SQLite doesn't support OFFSET w/o LIMIT.
|
Comment created by @deeky666: [~mbeccati] I believe this is fixed already by doctrine/dbal#782 |
Comment created by mbeccati: My mistake. The build wasn't cleaning up the vendor dir before running composer update, so it was still using an old dbal. |
Jira issue originally created by user adrienrusso:
findOneBy returns an object with partial collection for the properties with mapping oneToMany/Fetch Eager. This bug appear only for entities without inheritance.
I think this bug is due to the
LIMIT 1
clause happening onfindOneBy
which also applies on joins generated here.For instance, the generated SQL statement generated might look like
The text was updated successfully, but these errors were encountered: