Ejemplo n.º 1
0
 /**
  * Commits a transaction on the underlying database connection.
  *
  * @return void
  */
 public function commit()
 {
     $this->launch(function ($manager) {
         $manager->commit();
     });
     $this->executeQueue();
     $this->manager->flush();
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function flush($model = null, array $options = array())
 {
     if (null !== $model && !is_array($model)) {
         self::throwIfInvalidModelArgumentException($model);
     }
     parent::flush($model, $options);
 }