I'm working on a Symfony project (V3.4) and I'm using an existing DB (can't change it). To interact with it I use doctrine annotations and the work is well done! I manage to submit requests using JoinTable and JoinColumns but there is one last thing I don't know how to deal with ...
I have the following tables :
I have the id from table A and I'm trying to get the libelle from the E table.
Is there a way to do it using annotations? For now I've already done it between 3 tables but I don't know how to do it for more :
@ORM\ManyToMany(targetEntity="")
* @ORM\JoinTable(name="",joinColumns={@ORM\JoinColumn(
name="",referencedColumnName="")}, inverseJoinColumns={@ORM\JoinColumn(
name="",referencedColumnName="", unique=true)})
If it's not possible I'm open to suggestions.
Thanks!