I had a problem with a CUSTOM id generation mapping definition.
I have an abstract class and @MappedSuperclass which defines the id column as:
- @ORM\Column(name="ID", type="integer")
- @var int $id
The problem is that subclasses doesn't inherits the CustomIdGenerator annotation. I have traced the problem up to ClassMetadataFactory::doLoadMetadata.
I had to change the second inner if statement as
$class->setCustomGeneratorDefinition($parent->customGeneratorDefinition); <<<<< LINE ADDED
to allow subclasses inherit the customGenerationdefinition.
Aside, the docblock annotation help doesn't includes the CustomIdGenerator tag.