public function addC2M(ChildC2M $l)
    {
        if ($this->collC2Ms === null) {
            $this->initC2Ms();
            $this->collC2MsPartial = true;
        }

        if (!$this->collC2Ms->contains($l)) {
            $this->doAddC2M($l);

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

        return $this;
    }
public function addC2M(ChildC2M $l)
    {
        if ($this->collC2Ms === null) {
            $this->initC2Ms();
            $this->collC2MsPartial = true;
        }

        if (!$this->collC2Ms->contains($l)) {
            $this->doAddC2M($l);

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

        return $this;
    }
public function addC2M ( ChildC2M $ l ) { if ( $ this -> collC2Ms === null ) { $ this -> initC2Ms ( ) ; $ this -> collC2MsPartial = true ; } if ( ! $ this -> collC2Ms -> contains ( $ l ) ) { $ this -> doAddC2M ( $ l ) ; if ( $ this -> c2MsScheduledForDeletion and $ this -> c2MsScheduledForDeletion -> contains ( $ l ) ) { $ this -> c2MsScheduledForDeletion -> remove ( $ this -> c2MsScheduledForDeletion -> search ( $ l ) ) ; } } return $ this ; }
Method called to associate a ChildC2M object to this object
through the ChildC2M foreign key attribute.

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