public function addPage(ChildPage $l)
    {
        if ($this->collPages === null) {
            $this->initPages();
            $this->collPagesPartial = true;
        }

        if (!$this->collPages->contains($l)) {
            $this->doAddPage($l);

            if ($this->pagesScheduledForDeletion and $this->pagesScheduledForDeletion->contains($l)) {
                $this->pagesScheduledForDeletion->remove($this->pagesScheduledForDeletion->search($l));
            }
        }

        return $this;
    }
public function addPage(ChildPage $l)
    {
        if ($this->collPages === null) {
            $this->initPages();
            $this->collPagesPartial = true;
        }

        if (!$this->collPages->contains($l)) {
            $this->doAddPage($l);

            if ($this->pagesScheduledForDeletion and $this->pagesScheduledForDeletion->contains($l)) {
                $this->pagesScheduledForDeletion->remove($this->pagesScheduledForDeletion->search($l));
            }
        }

        return $this;
    }
public function addPage ( ChildPage $ l ) { if ( $ this -> collPages === null ) { $ this -> initPages ( ) ; $ this -> collPagesPartial = true ; } if ( ! $ this -> collPages -> contains ( $ l ) ) { $ this -> doAddPage ( $ l ) ; if ( $ this -> pagesScheduledForDeletion and $ this -> pagesScheduledForDeletion -> contains ( $ l ) ) { $ this -> pagesScheduledForDeletion -> remove ( $ this -> pagesScheduledForDeletion -> search ( $ l ) ) ; } } return $ this ; }
Method called to associate a ChildPage object to this object
through the ChildPage foreign key attribute.

@param  ChildPage $l ChildPage
@return $this|\Attogram\SharedMedia\Orm\Source The current object (for fluent API support)
Method called to associate a ChildPage object to this object through the ChildPage foreign key attribute .