/** * Eliminar registro * * @param string $where condiciones * @param array |string $values valores * @return int numero de registros eliminados */ public static function deleteAll($where = null, $values = null) { $source = static::getSource(); $sql = QueryGenerator::deleteAll($source, $where); $sth = self::query($sql, $values); return $sth->rowCount(); }