commit() public method

The operations are executed in the following order: 1) All entity inserts 2) All entity deletions
public commit ( null | object | array $entity = null )
$entity null | object | array
Beispiel #1
0
 /**
  * Commit all changes
  *
  * @param mixed $object
  * @param bool $refresh
  *
  * @throws Exception\DoctrineSearchException
  */
 public function flush($object = null, $refresh = false)
 {
     $this->unitOfWork->commit($object, $refresh);
 }
Beispiel #2
0
 /**
  * Commit all changes
  */
 public function flush($object = null)
 {
     $this->unitOfWork->commit($object);
 }