Пример #1
0
 /**
  * @return null|\Program\Entity\Call\Call
  */
 public function getCall()
 {
     if (is_null($this->call)) {
         return;
     }
     return $this->call->first();
 }
Пример #2
0
 /**
  * New function needed to make the hydrator happy
  *
  * @param Collections\Collection $collection
  */
 public function removeCall(Collections\Collection $collection)
 {
     foreach ($collection as $call) {
         $this->call->removeElement($call);
     }
 }