Performance issue with getParent and maybe other things
Open
- Dominant language
- PHP
- Stars
- 181
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Description
I noticed that if you map the `@ParentDocument` it seems that the parent node is eagerly loaded:
https://github.com/doctrine/phpcr-odm/blob/master/lib/Doctrine/ODM/PHPCR/UnitOfWork.php#L550
This is, I suppose, so that we know which class to create a proxy for, but obviously it almost defeats the point of creating a Proxy in the first place.
Doctrine ORM doesn't have this issue I guess. Any thoughts?
Contributor guide
Assessment
This issue has not been assessed yet.