Beispiel #1
0
 protected function _actionEnable($context)
 {
     $entity = $this->getItem();
     if ($entity->getIdentifier()->name === 'thread') {
         foreach ($entity->posts as $post) {
             $post->enabled = 1;
         }
     }
     parent::_actionEnable($context);
 }