Closed idcpj closed 1 year ago
如果model 采用 驼峰写法
public function screenOrder(){ return $this->hasOne(ScreenOrder::class,"screen_order_id","screen_order_id"); }
使用一对一关联时,获取到了转为小写的map的key(screenorder),应该以model中的方法为准比较好(screenOrder)
如果model 采用 驼峰写法
使用一对一关联时,获取到了转为小写的map的key(screenorder),应该以model中的方法为准比较好(screenOrder)