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

Read private properties from parent class #41

Merged
merged 2 commits into from
Oct 14, 2019

Conversation

terox
Copy link
Contributor

@terox terox commented Oct 10, 2019

Hello guys!

This PR fixes a little issue when you are working with a inheritance.

If you have a parent with private properties that use the annotation of the StringGeneratorBundle (Generate) it is ignored because it only uses the child properties. It should consider also the properties of parent.

The inheritance in Doctrine entities is not common, but there are a little use cases where use the Doctrine\ORM\Mapping\MappedSuperclass is absolutely needed and if you want maintain the properties private, before this patch, you couln't.

I hope that it helps!

@kieljohn kieljohn self-assigned this Oct 10, 2019
@kieljohn kieljohn merged commit df49d18 into vivait:master Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants