Doctrine\ORM\UnitOfWork::scheduleForInsert
Schedules an entity for insertion into the database.
If the entity already has an identifier, it will be added to the identity map.
Signature
Parameters
$entity
— object- The entity to schedule for insertion.