* @ORM\Id * @ORM\Column(type="integer", options={"unsigned": true}) * @ORM\GeneratedValue
Using traits to compose your Doctrine entities
Titouan Galopin

Heads up!!

You can’t rewrite @Id doctrine annotation. If you add another one in subclass/trait user, then Doctrine will assume composite key. And doctrine ignores rewriting anything but@Column.

Like what you read? Give Przemysław Lib a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.