phpDataMapper_Query::first PHP Метод

first() публичный Метод

Return the first entity matched by the query
public first ( ) : mixed
Результат mixed phpDataMapper_Entity on success, boolean false on failure
    public function first()
    {
        $result = $this->limit(1)->execute();
        return $result !== false ? $result->first() : false;
    }