public function add($oEntity)
    {
        $this->checkClass($oEntity);
        $this->values[$oEntity->getCollectionIndex()] = $oEntity;

        return $this;
    }
public function add($oEntity)
    {
        $this->checkClass($oEntity);
        $this->values[$oEntity->getCollectionIndex()] = $oEntity;

        return $this;
    }
public function add ( $ oEntity ) { $ this -> checkClass ( $ oEntity ) ; $ this -> values [ $ oEntity -> getCollectionIndex ( ) ] = $ oEntity ; return $ this ; }
Add Entity to collection

@param AssocEntityInterface $oEntity

@return $this
Add Entity to collection