示例#1
0
 public function registerModel($className, $collectionName)
 {
     self::$_classInstances[$className] = $this;
     // register own instance
     self::$_classCollectionName[$className] = $collectionName;
     typeManager::registerModel($className);
     return $this;
 }
示例#2
0
 public function __set($name, $value)
 {
     $type = typeManager::get(\get_called_class(), $name);
     if (null != $type && isset($type['type']) && ($type['type'] == 'reference' || $type['type'] == 'references')) {
         $value = $this->_setReference($name, $value, $type);
     }
     $value = $this->_internalValue($name, $value, $type);
     if (isset($this->_data[$name]) && $this->_dirty[$name] === $value) {
     } else {
         $this->_data[$name] = $value;
         $this->_dirty[$name] = $value;
     }
 }