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