Retour au cours

Relations Doctrine : ManyToOne

Symfony de Zéro à Héros : Le Guide Complet 2026

Lier les tables

Un Comment (commentaire) appartient à un Article. C'est une relation ManyToOne.

Lancez make:entity Comment et ajoutez un champ article avec le type relation.