改名
This commit is contained in:
@@ -193,11 +193,13 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $param
|
* @param $param
|
||||||
* @param $db
|
* @param null $db
|
||||||
* @return $this
|
* @return static
|
||||||
* @throws
|
* @throws NotFindClassException
|
||||||
|
* @throws ReflectionException
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public static function findOne($param, $db = NULL): static
|
public static function findOne($param, $db = NULL): mixed
|
||||||
{
|
{
|
||||||
if (is_numeric($param)) {
|
if (is_numeric($param)) {
|
||||||
$primary = static::getColumns()->getPrimaryKeys();
|
$primary = static::getColumns()->getPrimaryKeys();
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ interface IOrm
|
|||||||
* @param null $db
|
* @param null $db
|
||||||
* @return ActiveRecord
|
* @return ActiveRecord
|
||||||
*/
|
*/
|
||||||
public static function findOne($param, $db = NULL): static;
|
public static function findOne($param, $db = NULL): mixed;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user