top-think / think-orm

Think ORM——the PHP Database&ORM Framework
Apache License 2.0
416 stars 173 forks source link

由3.0.11升级到3.0.12 有如下bug #495

Closed tl54577 closed 1 year ago

tl54577 commented 1 year ago

原来这样写

 $data = User::where('id',1)->find();
 $data['purse'] = Purse::where('user_id',$data['id'])->find();

现在只有这样写,还会报各种错误!

$data = User::where('id',1)->find();
$data['purse'] = Purse::where('user_id',$data['id'])
            ->find()
            ->toArray();

希望小版本别搞这种写法上的改变,做好兼容性,改回来!

liu21st commented 1 year ago

已经改进兼容了