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; }
private function initAssociations() { foreach ($this->relationships as $name => $options) { $this->assocs[$name] = SAssociationProxy::getInstance($this, $name, $options); } }