public function listAction()
    {
        $repository = $this->repositories->get('Applications/Application');
        $applicationId = $this->params()->fromQuery('applicationId', 0);
        $application = $repository->find($applicationId); /* @var \Applications\Entity\Application $application */
        
        $this->acl($application, 'read');
        
        return array(
            'comments' => $application->getComments(),
        );
    }
public function listAction()
    {
        $repository = $this->repositories->get('Applications/Application');
        $applicationId = $this->params()->fromQuery('applicationId', 0);
        $application = $repository->find($applicationId); /* @var \Applications\Entity\Application $application */
        
        $this->acl($application, 'read');
        
        return array(
            'comments' => $application->getComments(),
        );
    }
public function listAction ( ) { $ repository = $ this -> repositories -> get ( 'Applications/Application' ) ; $ applicationId = $ this -> params ( ) -> fromQuery ( 'applicationId' , 0 ) ; $ application = $ repository -> find ( $ applicationId ) ; /* @var \Applications\Entity\Application $application */ $ this -> acl ( $ application , 'read' ) ; return array ( 'comments' => $ application -> getComments ( ) , ) ; }
Lists comments of an application

@return array
Lists comments of an application