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