0

I'm having an issue with single table inheritance and an optional many to one mapping on a sub class. When I try to load the parent entity through the child of a subclass the parent is loaded with no data. I can reload the entity and get data without issue, though. Here is a repository with an example:

https://bitbucket.org/GDIBass/relationalsingletableinheritancedoctrinebug

I've tried to recreate this in Doctrine ORM's test suite without any luck. Any ideas?

2

1 Answer 1

1

Try to use eager loading for 'fetch' option in your realtion.

http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/annotations-reference.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.