I don't know if this answer is useful to users or not. But for me its providing the desired result (for docrtine with mysql) I used auto increment id, as usual,
/** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id;
The first time you run the command to update, than the table will create. Then you must manually execute the command below to set a custom auto increment id
ALTER TABLE users AUTO_INCREMENT=1001;
Again, when starting the circuit, it will not automatically update the increment, which is set manually. That's all!! His desired result.
Kiran source share