src/orm/classes/Table.php
public function findAllBy(array $filter)
    {
        $q = $this->createSelectQuery();
        $where = array();
        $columns = $this->getColumns();
        foreach ($filter as $field => $value)
        {
            if (!array_key_exists($field, $columns))
            {
                throw new LogicException(sprintf('Unknown column "%s" in filter', $field));
            }
            if (!$columns[$field]->canBeUsedInWhere())
            {
                throw new LogicException(
                    sprintf('Field "%s" does not supports filtering', $field));
            }
            $where []= $q->expr->eq($field, $q->bindValue(
                $columns[$field]->orm2pdo($value),
                ":$field",
                $columns[$field]->getPdoType())
            );
        }
        $q->where($q->expr->lAnd($where));
        return $this->loadFromQuery($q);
    }
public function findAllBy(array $filter)
    {
        $q = $this->createSelectQuery();
        $where = array();
        $columns = $this->getColumns();
        foreach ($filter as $field => $value)
        {
            if (!array_key_exists($field, $columns))
            {
                throw new LogicException(sprintf('Unknown column "%s" in filter', $field));
            }
            if (!$columns[$field]->canBeUsedInWhere())
            {
                throw new LogicException(
                    sprintf('Field "%s" does not supports filtering', $field));
            }
            $where []= $q->expr->eq($field, $q->bindValue(
                $columns[$field]->orm2pdo($value),
                ":$field",
                $columns[$field]->getPdoType())
            );
        }
        $q->where($q->expr->lAnd($where));
        return $this->loadFromQuery($q);
    }
Возвращает все записи, удовлетворяющие фильтру

@param array $filter  набор пар «поле => значение»

@throws LogicException

@return ORM_Entity[]

@since 3.00