修正traits\model

This commit is contained in:
thinkphp
2016-01-31 20:55:52 +08:00
parent 1e409b7ddc
commit c8ff8b9f7a
3 changed files with 3 additions and 3 deletions

View File

@@ -375,7 +375,7 @@ trait Relation
return false;
}
if (!empty($this->_link)) {
$fields = $this->getDbFields();
$fields = $this->getFields();
// 遍历关联定义
foreach ($this->_link as $key => $val) {
// 操作制定关联类型