修正一处变量错误

This commit is contained in:
thinkphp
2017-01-17 13:45:51 +08:00
parent fea1b59582
commit a1cb6ea4ca
2 changed files with 3 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ class HasOne extends OneToOne
* @param \Closure $closure 闭包查询条件
* @access public
*/
public function getRelation($subRelation = '', $colsure = null)
public function getRelation($subRelation = '', $closure = null)
{
// 执行关联定义方法
$localKey = $this->localKey;