Пример #1
0
 /**
  * Post insert menu
  * 
  * @return  void
  */
 public function postInsert($event)
 {
     $item = new DinMenuItem();
     $item->setMenuId($this->getId())->setIsPublic(true)->setUri('root');
     $item->save();
     $tree = Doctrine_Core::getTable('DinMenuItem')->getTree();
     $tree->createRoot($item);
 }