Please one direction;

doctrine-module orm:schema-tool:update --force:


*ERROR:*
Column name `id` referenced for relation from Application\Entity\User 
towards Application\Entity\Category does not exist.

class User {

    /**
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    
    /**
     * @ORM\ManyToMany(targetEntity="Category", inversedBy="users")
     * @ORM\JoinTable(name="users_categorys")
     */
    private $categorys;

....
$this->users = new Doctrine\Common\Collections\ArrayCollection();


class Category {

    /**
     * @var integer
     *
     * @ORM\Column(name="ctg_id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $ctgId;
    
    
    
    /**
     * @ORM\ManyToMany(targetEntity="User", mappedBy="categorys")
     */
    private $users;

......
$this->categorys = new Doctrine\Common\Collections\ArrayCollection();
    

-- 
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