PageRenderTime 823ms CodeModel.GetById 46ms RepoModel.GetById 8ms app.codeStats 0ms

/src/Propel/Generator/Behavior/Archivable/templates/queryUpdateWithoutArchive.php

http://github.com/propelorm/Propel2
PHP | 16 lines | 5 code | 2 blank | 9 comment | 0 complexity | 93332e75179550f4eb1901405ae2bcb4 MD5 | raw file
  1. /**
  2. * Delete records matching the current query without archiving them.
  3. *
  4. * @param array $values Associative array of keys and values to replace
  5. * @param ConnectionInterface $con an optional connection object
  6. * @param boolean $forceIndividualSaves If false (default), the resulting call is a Criteria::doUpdate(), ortherwise it is a series of save() calls on all the found objects
  7. *
  8. * @return integer the number of deleted rows
  9. */
  10. public function updateWithoutArchive($values, $con = null, $forceIndividualSaves = false)
  11. {
  12. $this->archiveOnUpdate = false;
  13. return $this->update($values, $con, $forceIndividualSaves);
  14. }