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

Cancel load entity exception #684

Closed
wants to merge 3 commits into from
Closed

Cancel load entity exception #684

wants to merge 3 commits into from

Conversation

TomHAnderson
Copy link
Member

Gives the developer an exception to throw in postLoad which will cancel the loading of the entity into the EntityManager

@TomHAnderson
Copy link
Member Author

Unit Tested Use Case(s)

Security - See tests/Doctrine/Tests/ORM/Functional/CancelLoadEntityExceptionTest.php in this PR
Implement application security through the postLoad event by walking up an association tree until the security passes or failes on the determining entity

@TomHAnderson
Copy link
Member Author

Closing because I don't believe such an easy solution as throwing an exception will work as-is and a major rewrite would be necessary in order to make my CLEET_ test work correclty. I think the CLEET_ test is a graceful idea with merit.

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.

1 participant