[Fixed] Doctrine2 annotations - Missing @ORM\Id when primary key is also foreign key with filled "column" property

+1 vote
asked Oct 22, 2014 in Solved by ludek.vodicka Skipper developer (140,450 points)
recategorized Oct 25, 2014 by ludek.vodicka

received by email:

Missing @ORM\Id when primary key is also foreign key with filled "column" property

enter image description here

enter image description here

  /**
     * @ORM\JoinColumn(name="products_id", referencedColumnName="products_id", nullable=false, unique=true)
     * @ORM\OneToOne(targetEntity="Product", inversedBy="productDescription")
     */
    private $product;

1 Answer

0 votes
answered Oct 25, 2014 by ludek.vodicka Skipper developer (140,450 points)
...