Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function getUniqueByFetcher(Fetcher $fetcher)
 {
     $fetcher->setPage(1);
     $fetcher->setNbByPage(2);
     $ids = $this->getIdsByFetcher($fetcher);
     if (empty($ids)) {
         return null;
     }
     if (count($ids) === 2) {
         throw new NotUniqueResultException();
     }
     return $this->manager->getById(reset($ids));
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function deleteById($id)
 {
     return $this->manager->deleteById($id);
 }