Exemplo n.º 1
0
 private static function getIncludedAssociations($instance, $include)
 {
     $associations = array();
     foreach ($include as $assoc) {
         if (isset($instance->relationships[$assoc])) {
             $associations[$assoc] = SAssociationProxy::getOptions($instance, $assoc, $instance->relationships[$assoc]);
         }
     }
     return $associations;
 }
Exemplo n.º 2
0
 private function initAssociations()
 {
     foreach ($this->relationships as $name => $options) {
         $this->assocs[$name] = SAssociationProxy::getInstance($this, $name, $options);
     }
 }