Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DDC-3346] #1277 find one with eager loads is failing#1280

Merged
Ocramius merged 22 commits into
doctrine:masterfrom
Ocramius:hotfix/#1277-find-one-with-eager-loads-is-failing
Jan 25, 2015
Merged

[DDC-3346] #1277 find one with eager loads is failing#1280
Ocramius merged 22 commits into
doctrine:masterfrom
Ocramius:hotfix/#1277-find-one-with-eager-loads-is-failing

Conversation

@Ocramius
Copy link
Copy Markdown
Member

Ping @scaytrase

Note that this is a first revision and needs refactoring, so please consider helping out with that if you can.

Ping @guilhermeblanco: please check the CachedPersisterContext stuff: it's dirty as heck, but that's because the persister internal generated SQL caching is inconsistent as heck too.

Resolution path for 2.4.x will be to throw an exception if there is an offset or a limit.

@doctrinebot
Copy link
Copy Markdown

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DDC-3534

We use Jira to track the state of pull requests and the versions they got
included in.

@scaytrase
Copy link
Copy Markdown
Contributor

I'l try to see what can I do this weekend

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test will fail due to a DBAL bug

@Ocramius
Copy link
Copy Markdown
Member Author

This bug does not affect 2.4.x, as the eager loading does not work with TO_MANY associations

scaytrase and others added 21 commits January 24, 2015 14:39
…e newly created `CachedPersisterContext`
…en limiting and fetch-joining to-many eager associations
…ET repository API (must not hydrate collections)
@Ocramius Ocramius force-pushed the hotfix/#1277-find-one-with-eager-loads-is-failing branch from 85c23e2 to 97ea6a7 Compare January 24, 2015 13:48
@Ocramius Ocramius self-assigned this Jan 24, 2015
Ocramius added a commit that referenced this pull request Jan 25, 2015
…er-loads-is-failing

[DDC-3346] #1277 find one with eager loads is failing
@Ocramius Ocramius merged commit 146354d into doctrine:master Jan 25, 2015
@Ocramius Ocramius deleted the hotfix/#1277-find-one-with-eager-loads-is-failing branch January 25, 2015 05:00
@lcobucci
Copy link
Copy Markdown
Member

@Ocramius the limit = null & offset = 0 is creating a query with just OFFSET and that is raising an error on PHP 5.6.5 (bundled libsqlite was updated to 3.8.7.2).

@scaytrase
Copy link
Copy Markdown
Contributor

@lcobucci this should be already fixed here
doctrine/dbal#782

@lcobucci
Copy link
Copy Markdown
Member

My mistake, sorry =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants