11 $sqlTableName = static::getTableName();
12 $sqlHelper =
$entity->getConnection()->getSqlHelper();
14 $where = Main\ORM\Query\Query::buildFilterSql(
$entity, $filter);
15 $result =
new Main\Orm\Data\DeleteResult();
18 $sql =
"DELETE FROM {$sqlHelper->quote($sqlTableName)} WHERE " . $where;
19 $entity->getConnection()->queryExecute($sql);
20 $result->setData([
'rowsCount' =>
$entity->getConnection()->getAffectedRowsCount()]);