改名
This commit is contained in:
@@ -223,12 +223,12 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
||||
/**
|
||||
* @param $param
|
||||
* @param null $db
|
||||
* @return static
|
||||
* @return $this
|
||||
* @throws NotFindClassException
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function findOne($param, $db = NULL): mixed
|
||||
public static function findOne($param, $db = NULL): static
|
||||
{
|
||||
if (is_numeric($param)) {
|
||||
$primary = static::getColumns()->getPrimaryKeys();
|
||||
|
||||
@@ -24,10 +24,9 @@ abstract class HasBase
|
||||
protected Collection|ActiveRecord $data;
|
||||
|
||||
/**
|
||||
* @var IOrm
|
||||
* @var IOrm|ActiveRecord
|
||||
*/
|
||||
protected IOrm $model;
|
||||
|
||||
protected mixed $model;
|
||||
|
||||
/** @var array */
|
||||
protected array $value = [];
|
||||
|
||||
Reference in New Issue
Block a user