propelorm/Propel2

View on GitHub
src/Propel/Generator/Behavior/Archivable/templates/queryDeleteWithoutArchive.php
A

No issues here. Congrats!


/**
 * Delete records matching the current query without archiving them.
 *
 * @param      ConnectionInterface $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      ConnectionInterface $con    Connection to use.
 *
 * @return integer the number of deleted rows
 */
public function deleteAllWithoutArchive($con = null)
{
    $this->archiveOnDelete = false;

    return $this->deleteAll($con);
}

Size

Lines of code
10