vendor/topthink/think-orm/src/model/Relation.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2019 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
declare (strict_types = 1);
namespace think\model;
use Closure;
use ReflectionFunction;
use think\db\BaseQuery as Query;
use think\db\exception\DbException as Exception;
use think\Model;
/**
* 模型关联基础类
* @package think\model
* @mixin Query
*/
abstract class Relation
{
/**
* 父模型对象
* @var Model
*/
protected $parent;
/**
* 当前关联的模型类名
* @var string
*/
protected $model;
/**
* 关联模型查询对象
* @var Query
*/
protected $query;
/**
* 关联表外键
* @var string
*/
protected $foreignKey;
/**
* 关联表主键
* @var string
*/
protected $localKey;
/**
* 是否执行关联基础查询
* @var bool
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。