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
[Embeddables] Improved exception message #1133
Conversation
…'class' attribute.
Hello, thank you for creating this pull request. I have automatically opened an issue http://www.doctrine-project.org/jira/browse/DDC-3305 We use Jira to track the state of pull requests and the versions they got |
@phansys looking good to me, but is it possible to add a unit test to it? |
Of course @Ocramius. I'll update this PR with new tests. |
@@ -153,6 +153,10 @@ protected function doLoadMetadata($class, $parent, $rootEntityFound, array $nonS | |||
continue; | |||
} | |||
|
|||
if (!isset($embeddableClass['class'])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put spaces around !
.
@phansys ping? |
Hi @Ocramius. |
Thank you @Ocramius. |
Improved exception message when embeddable definition is missing 'class' attribute.
Instead of:
It shows: