protected function getClient($id)
 {
     $client = $this->enManager->getRepository(Client::clazz())->find($id);
     if ($client) {
         return $client;
     }
     throw new \Exception('Can\'t find Client by id');
 }
Пример #2
0
 /**
  * @return string
  */
 protected function getEntityClassName()
 {
     return Client::clazz();
 }
Пример #3
0
 /**
  * @param string $msisdn
  *
  * @return Client|null
  */
 public function findByMsisdn($msisdn)
 {
     return $this->enManager->getRepository(Client::clazz())->findOneBy([self::PARAM_MSISDN => $msisdn]);
 }