Example #1
0
 function __construct(&$parent, $options)
 {
     parent::__construct($parent, $options);
     assert(isset($options['field']));
     $this->_key = $options['field'];
     $this->_destinationKey = isset($options['destinationField']) ? $options['destinationField'] : NULL;
 }
Example #2
0
 function __construct(&$parent, $options)
 {
     parent::__construct($parent, $options);
     assert(isset($options['field']));
     $this->_key = $options['field'];
     assert(!is_null($this->_destinationKey));
     $this->_destinationKey = $options['destinationField'];
 }
 function __construct(&$parent, $options)
 {
     parent::__construct($parent, $options);
     $this->_objectName = $options['objectName'] . ':' . $options['name'];
     $this->_bindTo = $options['bindTo'];
 }
Example #4
0
 function buildAllRelations($build = true)
 {
     if ($this->_processRelations && !$this->_relationBuilded) {
         $this->_relationBuilded = true;
         // risolve le relazioni
         foreach ($this->_relations as $k => $v) {
             $relation = org_glizy_dataAccess_Relation::createObject($this, $v);
             if ($build) {
                 $relation->build();
             }
             $this->{$k} = $relation;
         }
     }
 }