eee
This commit is contained in:
@@ -237,7 +237,6 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
|
|||||||
public static function findOne(int|string|array $param): ?static
|
public static function findOne(int|string|array $param): ?static
|
||||||
{
|
{
|
||||||
$model = static::instance();
|
$model = static::instance();
|
||||||
|
|
||||||
$query = new ActiveQuery($model);
|
$query = new ActiveQuery($model);
|
||||||
$query->from($model->getTable())->alias('t1');
|
$query->from($model->getTable())->alias('t1');
|
||||||
if (is_numeric($param)) {
|
if (is_numeric($param)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user