PageRenderTime 49ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/propelorm/generator/lib/behavior/archivable/templates/queryUpdateWithoutArchive.php

https://bitbucket.org/franhb/propel
PHP | 16 lines | 5 code | 2 blank | 9 comment | 0 complexity | 856a4de9b9d46de5207817cf9cd1b20b MD5 | raw file
Possible License(s): LGPL-3.0
  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 PropelPDO $con an optional connection object
  6. * @param boolean $forceIndividualSaves If false (default), the resulting call is a BasePeer::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. }