[FLOW3-general] [Solved] Kickstart a model with relationship table
Rayuth You
rayuth at typo3cambodia.org
Tue Nov 29 03:37:59 CET 2011
Hi Christian
Now everything is working. @ORM\OneToMany(mappedBy="plattform")
Thanks,
Yuth
On 11/28/2011 04:53 PM, "Christian Müller (Kitsunet)" wrote:
> Hi,
>
> you need to add the annotation to the user property in CoffeeBean class,
> so that doctrine knows what kind of relation you want. And actually I
> see this error message is a bit outdated, the annotations should be
> prefixed, like:
>
> @ORM\ManyToOne
>
> if you have a use statement like this at the top of your class file:
> use Doctrine\ORM\Mapping as ORM;
>
> So just add the annotation you want and everything should be ok. The
> kickstarter can't know what relation you want to create there so it
> doesn't annotate anything.
>
> Cheers,
> Christian
>
--
Khmer TYPO3 User Group
Spirit of sharing
Rayuth You
Web Developer
M: +855 11 262 078
E: rayuth at typo3cambodia.org
More information about the FLOW3-general
mailing list