改名
This commit is contained in:
@@ -52,6 +52,7 @@ abstract class AbstractCollection extends Component implements \IteratorAggregat
|
||||
* @param $query
|
||||
* @param array $array
|
||||
* @param null $model
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __construct($query, array $array = [], $model = null)
|
||||
{
|
||||
|
||||
@@ -157,7 +157,8 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
||||
*/
|
||||
public function createAnnotation()
|
||||
{
|
||||
$annotation = Snowflake::app()->getAttributes();
|
||||
$annotation = Snowflake::getAnnotation();
|
||||
$annotation->injectProperty($this);
|
||||
$methods = $annotation->getMethods(get_called_class());
|
||||
foreach ($methods as $method => $attributes) {
|
||||
foreach ($attributes as $attribute) {
|
||||
|
||||
Reference in New Issue
Block a user