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

Fixes ClassMetadata wakeupReflection with embeddable and StaticReflectio... #1381

Closed
wants to merge 1 commit into from
Closed

Fixes ClassMetadata wakeupReflection with embeddable and StaticReflectio... #1381

wants to merge 1 commit into from

Conversation

nicovogelaar
Copy link
Contributor

...nService

When the StaticReflectionService is used, then the wakeupReflection will cause an error with embedded properties. This is because the getAccessibleProperty method of the StaticReflectionService will always return null, so the parentReflFields will only have null values.

I found this problem when I was generating a Symfony form based on an entity with embedded properties.

@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DDC-3684

We use Jira to track the state of pull requests and the versions they got
included in.

@Ocramius
Copy link
Member

Seems straightforward: merging as soon as I can.

@Astinus-Eberhard
Copy link

I have successfully patch 2.5 to use embedded objects with doctrine:generate:entities command. It resolves all errors that occurred in stable version. Please merge it into master as soon as possible.

Ocramius added a commit that referenced this pull request Jul 15, 2015
…icreflection-serialization-fix-2.5' into 2.5

Close #1381
@Ocramius Ocramius closed this in 67cda0c Jul 15, 2015
@Ocramius
Copy link
Member

Merged, thanks!

master: 67cda0c
2.5: f9bbd95

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

4 participants