浏览代码

Refactoring, suppression champ merchant si section existe, adaption des repository et des factory

develop
Fab 3 年前
父节点
当前提交
4e18775c0b
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. +9
    -1
      Repository/AbstractRepositoryQuery.php

+ 9
- 1
Repository/AbstractRepositoryQuery.php 查看文件

@@ -54,7 +54,7 @@ abstract class AbstractRepositoryQuery
;
}

public function find()
public function find() :array
{
return $this->query->getQuery()->getResult();
}
@@ -90,5 +90,13 @@ abstract class AbstractRepositoryQuery
return $data;
}

public function orderBy($field, $sort){
if(substr($field,0,1)=== '.'){
return $this->addOrderBy($field, $sort) ;
}else{
return $this->addOrderBy('.'.$field, $sort) ;
}
}

}


正在加载...
取消
保存