Ejemplo n.º 1
0
 /**
  * (non-PHPdoc)
  * @see tao/classes/Morph/property/Morph_Property_Generic#__getRawValue()
  */
 public function __getRawValue()
 {
     if(count($this->value) > 0){
         $refs = array();
         foreach ($this->value as $object){
             if($object->state() != \morph\enum::STATE_CLEAN){
                 \morph\Storage::instance()->save($object);
             }
             $refs[] = \morph\Utils::objectReference($object);
         }
         $this->references = $refs;
     }
     return $this->references;
 }
Ejemplo n.º 2
0
 /**
  * (non-PHPdoc)
  * @see tao/classes/Morph/property/Morph_Property_Generic#__getRawValue()
  */
 public function __getRawValue()
 {
     if(!is_null($this->value)) {
         if($this->value->state() != \morph\Enum::STATE_CLEAN) {
             //save value
             \morph\Storage::instance()->save($this->value);
         }
         $this->reference = \morph\Utils::objectReference($this->value);
     }
     return $this->reference;
 }