mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
代码规范
This commit is contained in:
@@ -907,7 +907,8 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
* @param array $alias 别名定义
|
* @param array $alias 别名定义
|
||||||
* @return \think\db\Query|string
|
* @return \think\db\Query|string
|
||||||
*/
|
*/
|
||||||
public function hasManyThrough($model,$through,$foreignKey='',$throughKey='',$localKey='',$alias=[]){
|
public function hasManyThrough($model, $through, $foreignKey = '', $throughKey = '', $localKey = '', $alias = [])
|
||||||
|
{
|
||||||
// 记录当前关联信息
|
// 记录当前关联信息
|
||||||
$model = $this->parseModel($model);
|
$model = $this->parseModel($model);
|
||||||
$through = $this->parseModel($through);
|
$through = $this->parseModel($through);
|
||||||
|
|||||||
@@ -512,7 +512,8 @@ abstract class Connection
|
|||||||
* @param bool|string $class true 返回PDOStatement 字符串用于指定返回的类名
|
* @param bool|string $class true 返回PDOStatement 字符串用于指定返回的类名
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function procedure($class){
|
protected function procedure($class)
|
||||||
|
{
|
||||||
$item = [];
|
$item = [];
|
||||||
do {
|
do {
|
||||||
$result = $this->getResult($class);
|
$result = $this->getResult($class);
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ class Relation
|
|||||||
const BELONGS_TO = 3;
|
const BELONGS_TO = 3;
|
||||||
const BELONGS_TO_MANY = 4;
|
const BELONGS_TO_MANY = 4;
|
||||||
|
|
||||||
|
|
||||||
// 父模型对象
|
// 父模型对象
|
||||||
protected $parent;
|
protected $parent;
|
||||||
/** @var Model 当前关联的模型类 */
|
/** @var Model 当前关联的模型类 */
|
||||||
|
|||||||
Reference in New Issue
Block a user