There are two entities having a many-to-many relationship :
/** * @ORM\\Entity(repositoryClass=KbFavorisRepository::class) */ class KbFavoris { /**