protected function loadObject()
    {
        $this->object = $this->generator->send($this->id);
        $this->generator->next();
        unset($this->generator);
    }
protected function loadObject()
    {
        $this->object = $this->generator->send($this->id);
        $this->generator->next();
        unset($this->generator);
    }
protected function loadObject ( ) { $ this -> object = $ this -> generator -> send ( $ this -> id ) ; $ this -> generator -> next ( ) ; unset ( $ this -> generator ) ; }
Loads the generator to object value and unset's generator.

Can only be called once, so check presence of $this->object before using it.

This assumes generator is made to support bulk loading of several objects, and thus takes object id as input
in order to return right object at a time, and thus performs two yields per item.
-> See PR that came with this trait for example generators.
Loads the generator to object value and unset s generator .