I want to set the id of a new object with a specific value (that does not already exist in the database) without removing the auto-increment option of the field.
The id declaration :
#[ORMId]
#[ORMGeneratedValue]
#[ORMColumn(type: Types::INTEGER, options: ['unsigned' => true])]
protected ?int $id = null;
What I want to do :
$newObject->setId(92183); // The id does not already exist in the db
Any idea how can I do that without removing the auto-increment please ?