[FLOW3-general] No class schema found for "Doctrine\Common\Collections\Collection"
Daniel Siepmann
layne.obserdia at gmail.com
Fri Jan 27 01:51:59 CET 2012
Some nice guys in the IRC helped me.
The problem were te wrong Doctrine annotations. The mappedBy has to
define the exactly properties. Case senstive!
And the opponent model has to define the inversedBy as described here:
http://www.doctrine-project.org/docs/orm/2.1/en/reference/association-mapping.html#collections
That's it.
On 2012-01-26 22:50:52 +0000, Daniel Siepmann said:
> Hi,
>
> I've got the same problem.
> I created the models but there is something special to my models.
> There is one Model "Person" (which is an abstract class) and the two
> models "Student" and "Teacher".
> They extend "Person". I created a repository for "Person" only yet. I
> don't know, is this the right way?
>
> Here is the exception from cli:
> ================
> Uncaught Exception
> No class schema found for "Doctrine\Common\Collections\Collection". The
> class should probably marked as entity or value object!
>
> More Information
> Exception code #1295973082
> File
> /Users/daniel/Sites/dev/school/oop-school-example-with-flow3/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Persistence_Doctrine_Mapping_Driver_Flow3AnnotationDriver_Original.php
> line 80
> ================
>
> And here is my package as zip-file for download:
> http://layne.dyndns.org/coding/Daniel.SchoolOop.zip
>
> On 2011-12-12 14:40:14 +0000, Dmitry Dulepov said:
--
Best Regards,
Daniel Siepmann.
www.wiki.typo3.org
More information about the FLOW3-general
mailing list