src/FelixOnline/Base/BaseManager.php
public function one()
    {
        $_limit = $this->limit;
        $this->limit = null;

        $values = $this->values();

        if (is_null($values)) {
            throw new InternalException('No results');
        }

        if (count($values) > 1) {
            throw new InternalException('More than one result');
        }

        $this->limit = $_limit;
        return $values[0];
    }
public function one()
    {
        $_limit = $this->limit;
        $this->limit = null;

        $values = $this->values();

        if (is_null($values)) {
            throw new InternalException('No results');
        }

        if (count($values) > 1) {
            throw new InternalException('More than one result');
        }

        $this->limit = $_limit;
        return $values[0];
    }
Get one