From d96ec0c3500782087464c55c0baa5a90b704ab63 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 22 Jan 2017 18:04:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=B9=E6=B3=95=E5=A3=B0?= =?UTF-8?q?=E6=98=8E=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model/relation/OneToOne.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/think/model/relation/OneToOne.php b/library/think/model/relation/OneToOne.php index 0ec28987..c89214c4 100644 --- a/library/think/model/relation/OneToOne.php +++ b/library/think/model/relation/OneToOne.php @@ -17,6 +17,13 @@ use think\Loader; use think\Model; use think\model\Relation; +/** + * Class OneToOne + * @package think\model\relation + * @method void eagerlySete($resultSet, $relation, $subRelation, $closure) 预载入关联查询(数据集) + * @method void eagerlyOne($result, $relation, $subRelation, $closure) 预载入关联查询(数据) + * + */ abstract class OneToOne extends Relation { // 预载入方式 0 -JOIN 1 -IN