Category : accessor

I have an issue with the propertyAccessor : There are the two following entities : class Foo { /** * @ORMManyToOne(targetEntity="AppEntityBar", inversedBy="foo") * @ORMJoinColumn(nullable=false) */ private $bar; public function getBar(): ?Bar { return $this->bar; } public function setBar(?Bar $bar): self { $this->bar = $bar; return $this; } } class Bar { /** * @ORMOneToMany(targetEntity="AppEntityFoo", mappedBy="bar", ..

Read more