예제 #1
0
파일: Hook.php 프로젝트: margery/thelia
 /**
  * @param    Module $module The module object to add.
  */
 protected function doAddModule($module)
 {
     $ignoredModuleHook = new ChildIgnoredModuleHook();
     $ignoredModuleHook->setModule($module);
     $this->addIgnoredModuleHook($ignoredModuleHook);
     // set the back reference to this object directly as using provided method either results
     // in endless loop or in multiple relations
     if (!$module->getHooks()->contains($this)) {
         $foreignCollection = $module->getHooks();
         $foreignCollection[] = $this;
     }
 }