예제 #1
0
 /**
  * @VirtualProperty()
  * @SerializedName("contrato")
  * @Groups({"details"})
  */
 public function getRelatedId()
 {
     /** @var OrmPersistible  */
     if ($this->contrato) {
         return $this->contrato->getId();
     }
     return null;
 }
예제 #2
0
 /**
  * @return string
  * @VirtualProperty()
  * @SerializedName("contrato")
  * @Groups({"details"})
  */
 public function getContratoId()
 {
     return $this->contrato->getId();
 }