[FLOW3-general] No class schema found for "Doctrine\Common\Collections\Collection"
Daniel Siepmann
layne.obserdia at gmail.com
Thu Jan 26 23:50:52 CET 2012
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:
> Hi!
>
> Trying to follow:
> http://flow3.typo3.org/documentation/guide/partii/modelandrepository.html
>
> Firsts, I got a error about @ORM\Column but I solved that with "use
> Doctrine\ORM\Mapping as ORM;".
>
> But now when I try to create a Post model, it says:
>
> ===============
> atlas:~/Projects/My/FLOW3-1.0.1$ ./flow3 kickstart:model --force
> TYPO3.Blog Post 'blog:\TYPO3\Blog\Domain\Model\Blog' title:string
> linkTitle:string date:\DateTime author:string content:string
> Uncaught Exception
> No class schema found for "Doctrine\Common\Collections\Collection"
>
> More Information
> Exception code #1295973082
> File
> /Users/dima/Projects/My/FLOW3-1.0.1/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Persistence_Doctrine_Mapping_Driver_Flow3AnnotationDriver_Original.php
> line 80
>
> Created .../TYPO3.Blog/Classes/Domain/Model/Post.php
> As a new model was generated, don't forget to update the database
> schema with the respective doctrine:* commands.
> ===============
>
> Why am I getting the exception here? Is it a bug in FLOW3?
>
> FLOW3 1.1.0 base.
--
Best Regards,
Daniel Siepmann.
www.wiki.typo3.org
More information about the FLOW3-general
mailing list