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

Rewrite Ghost Objects to only rely on property lazy loading #152

Closed
Ocramius opened this issue Mar 9, 2014 · 2 comments
Closed

Rewrite Ghost Objects to only rely on property lazy loading #152

Ocramius opened this issue Mar 9, 2014 · 2 comments
Assignees
Milestone

Comments

@Ocramius
Copy link
Owner

Ocramius commented Mar 9, 2014

The current approach of ghost objects is to lazy-load the object when the public API of the object is hit.

This involves that a lot of logic is under-optimized and can cause lazy-initialization even when not needed (for example, when accessing API that doesn't fetch internal object state, or that doesn't rely on the object's lazyness).

To mitigate that, public API lazy loading shall be completely removed, replaced by lazy properties only.

This way, compatibilizing ProxyManager with Doctrine 2 ORM will be easy and effortless.

@Ocramius Ocramius added this to the 1.0.0 milestone Mar 9, 2014
@Ocramius
Copy link
Owner Author

Depends on PHP 5.4

@Ocramius
Copy link
Owner Author

Handled in #159 and #192

@Ocramius Ocramius self-assigned this Dec 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant