53 $entity = static::getEntity();
54 $connection = $entity->getConnection();
56 $where = Query::buildFilterSql($entity, $filter);
57 $where = $where ?
'WHERE ' . $where :
'';
61 $connection->getSqlHelper()->quote($entity->getDbTableName()),
65 $res = $connection->query($sql);