public function getCollection(array $options = array())
    {
        /** @var ClientEntity[] $collection */
        $collection = $this->getRepository()->findAll();
        $resource   = new Resource($this->generateBrowseUrl(), array('count' => count($collection)));

        foreach ($collection as $element) {
            $resource->setEmbedded('client', $this->createResourceFromClient($element));
        }

        return $resource;
    }
public function getCollection(array $options = array())
    {
        /** @var ClientEntity[] $collection */
        $collection = $this->getRepository()->findAll();
        $resource   = new Resource($this->generateBrowseUrl(), array('count' => count($collection)));

        foreach ($collection as $element) {
            $resource->setEmbedded('client', $this->createResourceFromClient($element));
        }

        return $resource;
    }
public function getCollection ( array $ options = array ( ) ) { /** @var ClientEntity[] $collection */ $ collection = $ this -> getRepository ( ) -> findAll ( ) ; $ resource = new Resource ( $ this -> generateBrowseUrl ( ) , array ( 'count' => count ( $ collection ) ) ) ; foreach ( $ collection as $ element ) { $ resource -> setEmbedded ( 'client' , $ this -> createResourceFromClient ( $ element ) ) ; } return $ resource ; }
Returns all clients in a single collection resource.

@param string[] $options

@return Resource
Returns all clients in a single collection resource .