Doctrine\ORM\UnitOfWork::commit
Commits the UnitOfWork, executing all operations that have been postponed up to this point. The state of all managed entities will be synchronized with the database.
The operations are executed in the following order: 1) All entity insertions 2) All entity updates 3) All collection deletions 4) All collection updates 5) All entity deletions
Signature
public function commit([null|object|array
$entity = null] )
Parameters
$entity
— object
Returns
- void