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

Functional ticket for DDC-2484 #685

Closed
wants to merge 2 commits into from
Closed

Functional ticket for DDC-2484 #685

wants to merge 2 commits into from

Conversation

TomHAnderson
Copy link
Member

This PR represents different data paths through the ORM. When an entity is lazy loaded each field is loaded into proxies one at a time so the entity itself is never fetched from the database, only the data on the entity. This demonstrates how data lazy loaded through proxies does bypass the postLoad lifecycle event.


public function postLoad(LifecycleEventArgs $args)
{
if (get_class($args->getEntity()) == 'Doctrine\Tests\ORM\Functional\Ticket\DDC2484_Car') {
Copy link
Member

Choose a reason for hiding this comment

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

this is wrong, its a proxy, you need to use instanceof

@beberlei beberlei closed this Aug 10, 2013
@beberlei
Copy link
Member

Wrong assumption using get_class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants