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

Allow the usage of embedded objects on parent classes. #5867

Closed

Conversation

lcobucci
Copy link
Member

@lcobucci lcobucci commented Jun 9, 2016

The ClassMetadataInfo was always using the "current class" to fetch the reflection of a property even when a field is declared on the parent class (which causes ReflectionProperty to throw an exception).

The `ClassMetadataInfo` was always using the "current class" to
fetch the reflection of a property even when a field is declared
on the parent class (which causes `ReflectionProperty` to throw
an exception).
@lcobucci lcobucci force-pushed the embeddable-and-inheritance branch from 1e8e42c to 7f8a5f1 Compare June 9, 2016 19:59
@lcobucci
Copy link
Member Author

lcobucci commented Jun 9, 2016

Fixes #4097 and #4277.

@lcobucci
Copy link
Member Author

@Ocramius is this good enough?

@Ocramius Ocramius self-assigned this Jun 18, 2016
@Ocramius Ocramius added this to the 2.5.5 milestone Jun 18, 2016
@Ocramius
Copy link
Member

@lcobucci looks good, but can't merge atm (in a hurry)

@lcobucci
Copy link
Member Author

Don't worry was just checking if needed some more work ;)

Ocramius added a commit that referenced this pull request Jun 19, 2016
Ocramius added a commit that referenced this pull request Jun 19, 2016
Ocramius added a commit that referenced this pull request Jun 19, 2016
Ocramius added a commit that referenced this pull request Jun 19, 2016
Ocramius added a commit that referenced this pull request Jun 19, 2016
Ocramius added a commit that referenced this pull request Jun 19, 2016
@Ocramius Ocramius closed this in 3dfc180 Jun 19, 2016
@Ocramius
Copy link
Member

@lcobucci merged, thanks!

master: 3dfc180
2.5: aa58203

Note: I inlined all the tests into the TestCase that required them, and removed all unused API

@lcobucci
Copy link
Member Author

@Ocramius Nice! Will inline the mapped classes on the next functional tests I may write. Thanks!

@lcobucci lcobucci deleted the embeddable-and-inheritance branch August 26, 2016 08:14
alexgurrola pushed a commit to Sitetheory-Archive/doctrine2 that referenced this pull request Apr 13, 2017
alexgurrola pushed a commit to Sitetheory-Archive/doctrine2 that referenced this pull request Apr 13, 2017
alexgurrola pushed a commit to Sitetheory-Archive/doctrine2 that referenced this pull request Apr 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants