コード例 #1
0
 /**
  * @param int $id
  *
  * @return Organization
  *
  * @throws OrganizationNotFoundException
  */
 protected function findOrganization($id)
 {
     $organization = $this->organizationRepository->find($id, OrganizationRepositoryInterface::NOT_CACHED_DATA);
     if (!$organization) {
         throw new OrganizationNotFoundException($id);
     }
     return $organization;
 }