public function remove($comment) { $comment->setStatus('deleted'); $this->em->flush(); $cacheService = \Zend_Registry::get('container')->getService('newscoop.cache'); $cacheService->clearNamespace('comment'); return $comment; }