/src/Propel/Generator/Behavior/Archivable/templates/queryUpdateWithoutArchive.php
PHP | 16 lines | 5 code | 2 blank | 9 comment | 0 complexity | 93332e75179550f4eb1901405ae2bcb4 MD5 | raw file
- /**
- * Delete records matching the current query without archiving them.
- *
- * @param array $values Associative array of keys and values to replace
- * @param ConnectionInterface $con an optional connection object
- * @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
- *
- * @return integer the number of deleted rows
- */
- public function updateWithoutArchive($values, $con = null, $forceIndividualSaves = false)
- {
- $this->archiveOnUpdate = false;
- return $this->update($values, $con, $forceIndividualSaves);
- }