改进关联Relation类

This commit is contained in:
thinkphp
2017-09-10 12:46:55 +08:00
parent 60d6be4627
commit 1b65f2ec41
3 changed files with 2 additions and 15 deletions

View File

@@ -108,7 +108,8 @@ abstract class Relation
* @access protected
* @return void
*/
abstract protected function baseQuery();
protected function baseQuery()
{}
public function __call($method, $args)
{

View File

@@ -271,11 +271,4 @@ class MorphTo extends Relation
return $this->parent->setRelation($this->relation, null);
}
/**
* 执行基础查询(进执行一次)
* @access protected
* @return void
*/
protected function baseQuery()
{}
}

View File

@@ -311,11 +311,4 @@ abstract class OneToOne extends Relation
return $data;
}
/**
* 执行基础查询(进执行一次)
* @access protected
* @return void
*/
protected function baseQuery()
{}
}