src/ORM/UnsavedRelationList.php
public function last()
    {
        $item = end($this->items);
        if (!empty($this->extraFields[key($this->items)])) {
            $item->update($this->extraFields[key($this->items)]);
        }
        return $item;
    }
public function last()
    {
        $item = end($this->items);
        if (!empty($this->extraFields[key($this->items)])) {
            $item->update($this->extraFields[key($this->items)]);
        }
        return $item;
    }
public function last ( ) { $ item = end ( $ this -> items ) ; if ( ! empty ( $ this -> extraFields [ key ( $ this -> items ) ] ) ) { $ item -> update ( $ this -> extraFields [ key ( $ this -> items ) ] ) ; } return $ item ; }
Returns the last item in the list

@return mixed
Returns the last item in the list