When I establish the ManytoOne mapping, while both classes are in the same namespace, it works.
but it will not work if the two classes are in a different namespace?
/** * @ORM\ManyToOne(targetEntity="OP\ProjectBundle\Entity\Project", inversedBy="tickets") * @ORM\JoinColumn(name="project_id", referencedColumnName="id") */ protected $project;
Jayson
source share