mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进关联Relation类
This commit is contained in:
@@ -108,7 +108,8 @@ abstract class Relation
|
||||
* @access protected
|
||||
* @return void
|
||||
*/
|
||||
abstract protected function baseQuery();
|
||||
protected function baseQuery()
|
||||
{}
|
||||
|
||||
public function __call($method, $args)
|
||||
{
|
||||
|
||||
@@ -271,11 +271,4 @@ class MorphTo extends Relation
|
||||
return $this->parent->setRelation($this->relation, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行基础查询(进执行一次)
|
||||
* @access protected
|
||||
* @return void
|
||||
*/
|
||||
protected function baseQuery()
|
||||
{}
|
||||
}
|
||||
|
||||
@@ -311,11 +311,4 @@ abstract class OneToOne extends Relation
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行基础查询(进执行一次)
|
||||
* @access protected
|
||||
* @return void
|
||||
*/
|
||||
protected function baseQuery()
|
||||
{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user