public function setMedioteca(CNabuMedioteca $nb_medioteca, $field = NABU_MEDIOTECA_FIELD_ID)
    {
        $this->nb_medioteca = $nb_medioteca;
        if ($this instanceof CNabuDataObject) {
            $this->transferValue($nb_medioteca, NABU_MEDIOTECA_FIELD_ID, $field);
        }

        return $this;
    }
public function setMedioteca(CNabuMedioteca $nb_medioteca, $field = NABU_MEDIOTECA_FIELD_ID)
    {
        $this->nb_medioteca = $nb_medioteca;
        if ($this instanceof CNabuDataObject) {
            $this->transferValue($nb_medioteca, NABU_MEDIOTECA_FIELD_ID, $field);
        }

        return $this;
    }
public function setMedioteca ( CNabuMedioteca $ nb_medioteca , $ field = NABU_MEDIOTECA_FIELD_ID ) { $ this -> nb_medioteca = $ nb_medioteca ; if ( $ this instanceof CNabuDataObject ) { $ this -> transferValue ( $ nb_medioteca , NABU_MEDIOTECA_FIELD_ID , $ field ) ; } return $ this ; }
Sets the Medioteca instance that owns this object and sets the field containing the Medioteca id.
@param CNabuMedioteca $nb_medioteca Medioteca instance to be setted.
@param string $field Field name where the Medioteca id will be stored.
@return CNabuDataObject Returns $this to allow the cascade chain of setters.
Sets the Medioteca instance that owns this object and sets the field containing the Medioteca id .