改名
This commit is contained in:
@@ -164,7 +164,6 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
|||||||
$attribute->execute([$this, $method]);
|
$attribute->execute([$this, $method]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$annotation->injectProperty($this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ use Exception;
|
|||||||
use JetBrains\PhpStorm\Pure;
|
use JetBrains\PhpStorm\Pure;
|
||||||
use Snowflake\Snowflake;
|
use Snowflake\Snowflake;
|
||||||
use Swoole\Coroutine;
|
use Swoole\Coroutine;
|
||||||
|
use function Amp\any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class BaseObject
|
* Class BaseObject
|
||||||
@@ -29,6 +30,7 @@ class BaseObject implements Configure
|
|||||||
* BaseAbstract constructor.
|
* BaseAbstract constructor.
|
||||||
*
|
*
|
||||||
* @param array $config
|
* @param array $config
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function __construct($config = [])
|
public function __construct($config = [])
|
||||||
{
|
{
|
||||||
@@ -36,6 +38,9 @@ class BaseObject implements Configure
|
|||||||
Snowflake::configure($this, $config);
|
Snowflake::configure($this, $config);
|
||||||
}
|
}
|
||||||
$this->init();
|
$this->init();
|
||||||
|
if (Snowflake::app()->has('attributes')) {
|
||||||
|
annotation()->injectProperty($this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user