mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正relation类
This commit is contained in:
@@ -103,7 +103,7 @@ class Relation
|
||||
break;
|
||||
default:
|
||||
// 直接返回
|
||||
$result = $model;
|
||||
$result = $relation;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
@@ -536,7 +536,7 @@ class Relation
|
||||
* @param bool $relationDel 是否同时删除关联表数据
|
||||
* @return integer
|
||||
*/
|
||||
public function detach($data, $relatinDel = false)
|
||||
public function detach($data, $relationDel = false)
|
||||
{
|
||||
if (is_array($data)) {
|
||||
$id = $data;
|
||||
|
||||
Reference in New Issue
Block a user