improved error handling for invalid association values#1016
improved error handling for invalid association values#1016flip111 wants to merge 1 commit intodoctrine:masterfrom
Conversation
Possibly to do: 1. Make custom Exception for line 713 2. Make custom Exception for line 817 3. Does the object check on line 816 slow down the code too much? Alternatively a try-catch could be put around line 1415 or higher up.
|
Hello, thank you for creating this pull request. I have automatically opened an issue http://www.doctrine-project.org/jira/browse/DDC-3098 We use Jira to track the state of pull requests and the versions they got |
|
IMO, the var_export should be removed from the exception message. IT could make it pretty unreadable and yes, you should not use the base exception class. Use the ORMInvalidArgumentException here |
|
@stof i considered Do you have a good alternative to var_export? i could only use gettype (like the Edit: |
There was a problem hiding this comment.
You shouldn't catch generic exceptions here.
|
Closing as incomplete. |
Possibly to do: