Answer the question
In order to leave comments, you need to log in
How to reverse `MappedSuperclass` in Doctrine?
Good day.
There is some entity:
// DocBlock omitted for cleanliness
@ORM\Entity
@ORM\Table(name="users")
class User {}
class SomeUser extends User {}
class AnyUser extends User {}
$em->persist(new SomeUser);
// => Class "SomeUser" sub class of "User" is not a valid entity or mapped super class.
Answer the question
In order to leave comments, you need to log in
The problem is solved if the child specifies `@ORM\AttributeOverrides({})` empty.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question