Skip to content
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-2763] Inheritance. Improve lazy load associated entitities #1440

Open
wants to merge 2 commits into
base: old-prototype-3.x
Choose a base branch
from

Conversation

taueres
Copy link
Contributor

@taueres taueres commented Jun 27, 2015

[DDC-2763 92c1a8f] [DDC-2763] Inheritance. CTI & STI. Improve lazy load associated entity, when target entity in association mapping is not last leaf in class hierarchy.

Issue fixed by adding class "ProxyHydrator" and new fetch mode for associations "FETCH_USE_PROXY".
Users need to mark the associations with "fetch=USE_PROXY" to trigger new lazy loading behaviour.
This PR is not intended to be final. It still lacks of tests.

…y, when target entity in association mapping is not last leaf in class hierarchy.

Issue fixed by adding class "ProxyHydrator" and new fetch mode for associations "FETCH_USE_PROXY".
Users need to mark the associations with "fetch=USE_PROXY" to trigger new lazy loading behaviour.
This PR is not intended to be final. It still lacks of tests.
@peelandsee
Copy link

+1, waiting for that!

@ranpafin
Copy link

It would be a most welcome addiction! +1

@Koc
Copy link
Contributor

Koc commented Jul 7, 2016

@Ocramius can you look at this PR?


$this->assertInstanceOf(__NAMESPACE__ . '\DDC2763SubTable', $reference);
$this->assertInstanceOf('Doctrine\ORM\Proxy\Proxy', $reference);
$this->assertEquals('foobar', $reference->getSubField());
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we assert how many queries was executed?

Base automatically changed from master to old-prototype-3.x February 23, 2021 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants