protected function getOrganizationEntity()
    {
        /* @var $orgRepo \Organizations\Repository\Organization */
        $orgRepo = $this->orgRepo;
        $organiationId = $this->params()->fromQuery('organization');

        $organization = $orgRepo->find($organiationId);

        return $organization;
    }
protected function getOrganizationEntity()
    {
        /* @var $orgRepo \Organizations\Repository\Organization */
        $orgRepo = $this->orgRepo;
        $organiationId = $this->params()->fromQuery('organization');

        $organization = $orgRepo->find($organiationId);

        return $organization;
    }
protected function getOrganizationEntity ( ) { /* @var $orgRepo \Organizations\Repository\Organization */ $ orgRepo = $ this -> orgRepo ; $ organiationId = $ this -> params ( ) -> fromQuery ( 'organization' ) ; $ organization = $ orgRepo -> find ( $ organiationId ) ; return $ organization ; }
Gets the referenced organization entity.

Retrieves the identifier from the requests' query params.

@return \Organizations\Entity\OrganizationInterface
Gets the referenced organization entity .