/** * Flushes all changes to objects that have been queued up to now to the database. * This effectively synchronizes the in-memory state of managed objects with the * database. * * @param array $options Array of options to be used with batchInsert(), update() and remove() */ public function flush(array $options = array()) { $this->errorIfClosed(); $this->unitOfWork->commit($options); }
/** * Flushes all changes to objects that have been queued up to now to the database. * This effectively synchronizes the in-memory state of managed objects with the * database. */ public function flush() { $this->_errorIfClosed(); $this->_unitOfWork->commit(); }
/** * Flushes all changes to objects that have been queued up to now to the database. * This effectively synchronizes the in-memory state of managed objects with the * database. */ public function flush() { $this->_unitOfWork->commit(); }