Instead of using the default "int" type for the entity's "id", you can use the UUID type from Symfony's Uid component. https://symfony.com/doc/current/components/uid.html#storing-uuids-in-databases php %command.full_name% --with-uuid Or you can use the ULID type from Symfony's Uid component. https://symfony.com/doc/current/components/uid.html#storing-ulids-in-databases php %command.full_name% --with-ulid