-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Description
When adding properties of embedded class to AttributeOverrides mapping fails.
* @ORM\AttributeOverrides({
* @ORM\AttributeOverride(name="embedded.property1", column= @ORM\Column(nullable=true, type="date")),
* @ORM\AttributeOverride(name="embedded.property2", column= @ORM\Column(nullable=true, type="string")),
* })
When adding overrides to the same class as where embeddable is added:
$ bin/console doctrine:schema:validate
[Doctrine\ORM\Mapping\MappingException]
Invalid field override named 'embedded.property1' for class 'AppBundle\Entity\EnitityWithEmbedded'.
When adding overrides to class which extends class where embeddable is added:
bin/console doctrine:schema:validate
[ReflectionException]
Property AppBundle\Entity\EnitityWithEmbeddedExtended::$embedded.property1 does not exist
ro0NL, vc-void, f1r3starter and movetonull
Metadata
Metadata
Assignees
Labels
No labels