Bonjour,
J'ai une entité avec un attribut qui est mappé sur une colonne de table de type Identity(1,1) (MSSQL).
Ce champs est donc incrémenté automatiquement.
Voici les annotations que j'ai mis en place sur ce champs :
Lorsque je déploie l'application j'ai cette erreur :/**
* @ORM\Column(name="ORDER", type="integer", nullable=true)
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
comment puis-je dire à Doctrine que ce champs est en auto-incrément ?[Doctrine\ORM\Mapping\MappingException]
Entity '....../MonEntity' has a composite identifier but uses an ID generator other than manually assigning (Identity, Sequence). This is not supported.
meci
Partager