コード例 #1
0
ファイル: BaseCessiomaterial.php プロジェクト: nagiro/intra
 /**
  * Declares an association between this object and a Material object.
  *
  * @param      Material $v
  * @return     Cessiomaterial The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setMaterial(Material $v = null)
 {
     if ($v === null) {
         $this->setMaterialIdmaterial(NULL);
     } else {
         $this->setMaterialIdmaterial($v->getIdmaterial());
     }
     $this->aMaterial = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Material object, it will not be re-added.
     if ($v !== null) {
         $v->addCessiomaterial($this);
     }
     return $this;
 }