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.

Reply via email to