symfony-3.2

Symfony 3.2 A circular reference has been detected (configured limit: 1)

浪尽此生 提交于 2019-11-29 06:50:54
问题 I have this two entities in my project class PoliceGroupe { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="code", type="string", length=50) */ private $code; /** * @ORM\ManyToMany(targetEntity="PointVente", inversedBy="policegroupe") * @ORM\JoinTable(name="police_groupe_point_vente", * joinColumns={@ORM\JoinColumn(name="police_groupe_id", referencedColumnName="id")}, *