public function addRecord(Record $l)
    {
        if ($this->collRecords === null) {
            $this->initRecords();
            $this->collRecordsPartial = true;
        }

        if (!$this->collRecords->contains($l)) {
            $this->doAddRecord($l);

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

        return $this;
    }
public function addRecord(Record $l)
    {
        if ($this->collRecords === null) {
            $this->initRecords();
            $this->collRecordsPartial = true;
        }

        if (!$this->collRecords->contains($l)) {
            $this->doAddRecord($l);

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

        return $this;
    }
public function addRecord ( Record $ l ) { if ( $ this -> collRecords === null ) { $ this -> initRecords ( ) ; $ this -> collRecordsPartial = true ; } if ( ! $ this -> collRecords -> contains ( $ l ) ) { $ this -> doAddRecord ( $ l ) ; if ( $ this -> recordsScheduledForDeletion and $ this -> recordsScheduledForDeletion -> contains ( $ l ) ) { $ this -> recordsScheduledForDeletion -> remove ( $ this -> recordsScheduledForDeletion -> search ( $ l ) ) ; } } return $ this ; }
Method called to associate a Record object to this object
through the Record foreign key attribute.

@param  Record $l Record
@return $this|\eXpansion\Framework\PlayersBundle\Model\Player The current object (for fluent API support)
Method called to associate a Record object to this object through the Record foreign key attribute .