modify
This commit is contained in:
@@ -68,7 +68,6 @@ class Annotation extends Component
|
|||||||
if (isset($this->_model_relate[$class . '::' . $setName])) {
|
if (isset($this->_model_relate[$class . '::' . $setName])) {
|
||||||
return $this->_model_relate[$class . '::' . $setName];
|
return $this->_model_relate[$class . '::' . $setName];
|
||||||
}
|
}
|
||||||
var_dump($class . '::' . $setName);
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -853,6 +853,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
|||||||
|
|
||||||
$loader = Snowflake::app()->getAnnotation();
|
$loader = Snowflake::app()->getAnnotation();
|
||||||
if (!empty($method = $loader->getGetMethodName(get_called_class(), $name))) {
|
if (!empty($method = $loader->getGetMethodName(get_called_class(), $name))) {
|
||||||
|
var_dump(get_called_class() . '::' . $method);
|
||||||
return $this->{$method}();
|
return $this->{$method}();
|
||||||
}
|
}
|
||||||
if (array_key_exists($name, $this->_attributes)) {
|
if (array_key_exists($name, $this->_attributes)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user