PageRenderTime 67ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/generator/lib/behavior/archivable/templates/queryDeleteWithoutArchive.php

http://github.com/propelorm/Propel
PHP | 28 lines | 10 code | 4 blank | 14 comment | 0 complexity | bc98cf1ace5e5f2a23095b2331e57e09 MD5 | raw file
  1. /**
  2. * Delete records matching the current query without archiving them.
  3. *
  4. * @param PropelPDO $con Connection to use.
  5. *
  6. * @return integer the number of deleted rows
  7. */
  8. public function deleteWithoutArchive($con = null)
  9. {
  10. $this->archiveOnDelete = false;
  11. return $this->delete($con);
  12. }
  13. /**
  14. * Delete all records without archiving them.
  15. *
  16. * @param PropelPDO $con Connection to use.
  17. *
  18. * @return integer the number of deleted rows
  19. */
  20. public function deleteAllWithoutArchive($con = null)
  21. {
  22. $this->archiveOnDelete = false;
  23. return $this->deleteAll($con);
  24. }