"association refers to the inverse side field" & "mappings are inconsistent with each other" "association refers to the inverse side field" & "mappings are inconsistent with each other" symfony symfony

"association refers to the inverse side field" & "mappings are inconsistent with each other"


In Reservation entity inversedBy property, you should point the appropriate field, so resevations, not tables:

/** * @ORM\ManyToMany(targetEntity="Table", inversedBy="reservations") * @ORM\JoinTable(name="reservation_table") **/protected $tables;