コード例 #1
0
ファイル: BaseModule.php プロジェクト: Evolix/lilac
 /**
  * Declares an association between this object and a ModuleHook object.
  *
  * @param      ModuleHook $v
  * @return     Module The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setModuleHook(ModuleHook $v = null)
 {
     if ($v === null) {
         $this->setHook(NULL);
     } else {
         $this->setHook($v->getId());
     }
     $this->aModuleHook = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ModuleHook object, it will not be re-added.
     if ($v !== null) {
         $v->addModule($this);
     }
     return $this;
 }