public function first($options = [])
    {
        $result = $this->get($options);
        return is_object($result) ? $result->rewind() : reset($result);
    }
public function first($options = [])
    {
        $result = $this->get($options);
        return is_object($result) ? $result->rewind() : reset($result);
    }
public function first ( $ options = [ ] ) { $ result = $ this -> get ( $ options ) ; return is_object ( $ result ) ? $ result -> rewind ( ) : reset ( $ result ) ; }
Executes the query and returns the first result only.

@return object An entity instance.
Executes the query and returns the first result only .