[Flow] How to make a entity property from an interface?

Dominik Winkelbauer dominik.winkelbauer at respon.se
Thu Mar 12 17:49:29 CET 2015


I have an entity class A, which implements AInterface. Now i have an entity class B, which has a property from type AInterface. 

When i try to build the database, doctrine throws an error: "No class schema found for AInterface [...]". This error is totally logically, cause AInterface is not persistent and so doctrine cant find a suitable Database schema.

Now my question is, is there any Way in Typo3 Flow, to tell doctrine to use the database schema of class A instead of AInterface? I have found out, that with the help of the ResolveTargetEntity in doctrine this is principally possible (github.com/doctrine/doctrine2/blob/master/docs/en/cookbook/resolve-target-entity-listener.rst#set-up), but how can i implement that in TYPO3 Flow?

Thank you for your help.


More information about the Flow mailing list