public function addC2P(ChildC2P $l)
    {
        if ($this->collC2Ps === null) {
            $this->initC2Ps();
            $this->collC2PsPartial = true;
        }

        if (!$this->collC2Ps->contains($l)) {
            $this->doAddC2P($l);

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

        return $this;
    }
public function addC2P(ChildC2P $l)
    {
        if ($this->collC2Ps === null) {
            $this->initC2Ps();
            $this->collC2PsPartial = true;
        }

        if (!$this->collC2Ps->contains($l)) {
            $this->doAddC2P($l);

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

        return $this;
    }
public function addC2P ( ChildC2P $ l ) { if ( $ this -> collC2Ps === null ) { $ this -> initC2Ps ( ) ; $ this -> collC2PsPartial = true ; } if ( ! $ this -> collC2Ps -> contains ( $ l ) ) { $ this -> doAddC2P ( $ l ) ; if ( $ this -> c2PsScheduledForDeletion and $ this -> c2PsScheduledForDeletion -> contains ( $ l ) ) { $ this -> c2PsScheduledForDeletion -> remove ( $ this -> c2PsScheduledForDeletion -> search ( $ l ) ) ; } } return $ this ; }
Method called to associate a ChildC2P object to this object
through the ChildC2P foreign key attribute.

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