public function getNewInstance()
 {
     $instance = parent::getNewInstance();
     $poi = new Poi();
     $poi->setCoordenadaX(self::__DEFAULT_LAT);
     $poi->setCoordenadaY(self::__DEFAULT_LNG);
     $instance->setPoi($poi);
     return $instance;
 }
Example #2
0
 public function toArray($deep = true)
 {
     $array = get_object_vars($this);
     if ($this->postaSiguiente != null) {
         $array['postaSiguiente'] = $deep ? $this->postaSiguiente->toArray(false) : $this->postaSiguiente->getId();
     } else {
         $array['postaSiguiente'] = null;
     }
     $array['decisionfinal'] = ($this->decisionFinal = !null) ? $this->decisionFinal : null;
     $array['poi'] = $deep ? $this->poi->toArray() : $this->poi->getId();
     $array['subgrupo'] = $deep ? $this->subgrupo->toArray() : $this->subgrupo->getId();
     return $array;
 }