示例#1
0
 /**
  * @param ItemUpdateEvent $event
  */
 public function onStructureItemUpdate(ItemUpdateEvent $event)
 {
     $structureItem = $event->getStructureItem();
     $menuItems = $this->entityManager->getRepository('OctavaMenuBundle:Menu')->getByStructureId($structureItem->getId());
     $this->update($menuItems);
     $this->menuCache->deleteAll();
 }