From 888480ca0adf116338d12563138d46947682dcff Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 13 Sep 2016 15:53:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9FRelation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model/Relation.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/library/think/model/Relation.php b/library/think/model/Relation.php index bfaeb0d3..48d7851f 100644 --- a/library/think/model/Relation.php +++ b/library/think/model/Relation.php @@ -126,26 +126,6 @@ class Relation return $result; } - /** - * 获取父模型对象 - * @access public - * @return Model - */ - public function getParentModel() - { - return $this->parent; - } - - /** - * 获取当前的模型对象 - * @access public - * @return Model - */ - public function getModel() - { - return (new $this->model); - } - /** * 预载入关联查询 返回数据集 * @access public