I suggest validating your mappings with `orm:validate-schema` and `orm:info`.
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 22 November 2014 at 21:32, Johannes Niederloehner < [email protected]> wrote: > I have two entities connected with a ManyToOne association. > Unfortunatley the association doesn't work - no table/columen gets created. > What have I forgotten? > > > Client > { > public function __construct() { > $this->abos = new ArrayCollection(); > } > protected $id; > /** > * @ORM\OneToMany( > * targetEntity="Shopware\CustomModels\Joe\Abo", > * mappedBy="client") > * @var \Doctrine\Common\Collections\ArrayCollection > */ > protected $abos = null; > } > > > Abo > { > /** > * @ORM\ManyToOne( > * targetEntity="Shopware\CustomModels\Joe\Client", > * inversedBy="abos" > * ) > * @ORM\JoinColumn(name="clientId", referencedColumnName="id") > */ > protected $client; > } > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
