コード例 #1
0
ファイル: Nda.php プロジェクト: iteaoffice/program
 /**
  * @return null|\Program\Entity\Call\Call
  */
 public function getCall()
 {
     if (is_null($this->call)) {
         return;
     }
     return $this->call->first();
 }
コード例 #2
0
ファイル: Calendar.php プロジェクト: debranova/calendar
 /**
  * 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);
     }
 }