56 $entity = static::getEntity();
57 $connection = $entity->getConnection();
59 $where = Query::buildFilterSql($entity, $filter);
60 $where = $where ?
'WHERE ' . $where :
'';
64 $connection->getSqlHelper()->quote($entity->getDbTableName()),
68 $res = $connection->query($sql);