Example #1
0
 public function getRelationById($id)
 {
     try {
         $relation = new Relation();
         $relation->setId($id);
         $newRelation = $this->provider->searchRelation($relation);
         return $newRelation;
     } catch (EyePeopleException $e) {
         throw new EyePeopleException('Unable to find the relation ' . $relation->getId(), 0, $e);
     }
 }