/generator/lib/behavior/archivable/templates/queryDeleteWithoutArchive.php
PHP | 28 lines | 10 code | 4 blank | 14 comment | 0 complexity | bc98cf1ace5e5f2a23095b2331e57e09 MD5 | raw file
- /**
- * Delete records matching the current query without archiving them.
- *
- * @param PropelPDO $con Connection to use.
- *
- * @return integer the number of deleted rows
- */
- public function deleteWithoutArchive($con = null)
- {
- $this->archiveOnDelete = false;
- return $this->delete($con);
- }
- /**
- * Delete all records without archiving them.
- *
- * @param PropelPDO $con Connection to use.
- *
- * @return integer the number of deleted rows
- */
- public function deleteAllWithoutArchive($con = null)
- {
- $this->archiveOnDelete = false;
- return $this->deleteAll($con);
- }