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