public function removeActionListByPluginKey($pluginKey) { $list = $this->actionDao->findByPluginKey($pluginKey); foreach ($list as $dto) { /* @var $dto NEWSFEED_BOL_Action */ $this->removeAction($dto->entityType, $dto->entityId); } }