public function setNext(Collection $collection) { $collection->setParent($this); $collection->setMapper($this->mapper); $this->next = $collection; }
public function registerCollection($alias, Collection $collection) { $collection->setMapper($this); $this->collections[$alias] = $collection; }