改进关联定义中包含查询条件后重复执行的问题

This commit is contained in:
thinkphp
2016-12-28 11:37:50 +08:00
parent d409477b42
commit b0237b766d
2 changed files with 16 additions and 3 deletions

View File

@@ -92,6 +92,17 @@ abstract class Relation
return $this;
}
/**
* 移除关联查询参数
* @access public
* @return $this
*/
public function removeOption()
{
$this->query->removeOption();
return $this;
}
public function __call($method, $args)
{
if ($this->query) {