/** * @return null|\Program\Entity\Call\Call */ public function getCall() { if (is_null($this->call)) { return; } return $this->call->first(); }
/** * 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); } }