59 $entity = static::getEntity();
60 $connection = $entity->getConnection();
62 $where = Query::buildFilterSql($entity, $filter);
63 $where = $where ?
'WHERE ' . $where :
'';
67 $connection->getSqlHelper()->quote($entity->getDbTableName()),
71 $res = $connection->query($sql);