framework icon indicating copy to clipboard operation
framework copied to clipboard

模型使用create方法时,按指定规则传递suffix参数,但最后结果调用的还是没动态设置suffix时的对象

Open hotday1987 opened this issue 4 years ago • 2 comments

如图:我在model.php基类中打印,可以看到动态设置了suffix,但是走到848行->save()的时候,调用的还是原来没设置suffix时的对象

企业微信截图_1637818852587 企业微信截图_16378188902666

hotday1987 avatar Nov 25 '21 05:11 hotday1987

这样调用的: image

hotday1987 avatar Nov 25 '21 05:11 hotday1987

还有调用模型有些方法时,setsuffix对于某些连贯操作也不生效

hotday1987 avatar Nov 25 '21 05:11 hotday1987