public function addPersonImage(ChildPersonImage $l)
    {
        if ($this->collPersonImages === null) {
            $this->initPersonImages();
            $this->collPersonImagesPartial = true;
        }

        if (!in_array($l, $this->collPersonImages->getArrayCopy(), true)) { // only add it if the **same** object is not already associated
            $this->doAddPersonImage($l);
        }

        return $this;
    }
public function addPersonImage(ChildPersonImage $l)
    {
        if ($this->collPersonImages === null) {
            $this->initPersonImages();
            $this->collPersonImagesPartial = true;
        }

        if (!in_array($l, $this->collPersonImages->getArrayCopy(), true)) { // only add it if the **same** object is not already associated
            $this->doAddPersonImage($l);
        }

        return $this;
    }
public function addPersonImage ( ChildPersonImage $ l ) { if ( $ this -> collPersonImages === null ) { $ this -> initPersonImages ( ) ; $ this -> collPersonImagesPartial = true ; } if ( ! in_array ( $ l , $ this -> collPersonImages -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddPersonImage ( $ l ) ; } return $ this ; }
Method called to associate a ChildPersonImage object to this object
through the ChildPersonImage foreign key attribute.

@param    ChildPersonImage $l ChildPersonImage
@return   \Team\Model\Person The current object (for fluent API support)
Method called to associate a ChildPersonImage object to this object through the ChildPersonImage foreign key attribute .