[Flow] How to define targetEntity in abstractClass
Alexander Wende
a_wende at web.de
Wed Jul 23 12:22:02 CEST 2014
Quote: Karsten Dambekalns (k-fish) wrote on Tue, 22 July 2014 08:50
----------------------------------------------------
> You want to read about and use inheritance mapping: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/inheritance-mapping.html
>
Thanks for your reply Karsten. I knows these documentation and read it multiple times. But in my case I had to override the association type of the superclass in the concrete entity from
* @ORM\OneToOne(targetEntity="\COMPANY\Page\Domain\Model\Page")
to
* @ORM\OneToOne(targetEntity="\COMPANY\News\Domain\Model\News")
And according to the doctrine documentation, the association type cannot changed.
Somewhere I read that it should be possible to override the targetEntity using the TYPO3 flow object.yaml file. But I can't find anything in the documentation.
In extbase that is very easy because the db schema has to be created manually, but I have no solution for flow :(
More information about the Flow
mailing list