The Problem makes the "UNIQUE" in the @ORM anotation which creates the index therefor again and again. If I change this to "@ORM\Column(columnDefinition="INT(11) NOT NULL AUTO_INCREMENT")" without UNIQUE it works. This UNIQUE is needless with the Identity annotation, which creates an unique index for this column.