Browse Source

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

develop
Fab 3 years ago
parent
commit
4e18775c0b
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      Repository/AbstractRepositoryQuery.php

+ 9
- 1
Repository/AbstractRepositoryQuery.php View File

@@ -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) ;
}
}

}


Loading…
Cancel
Save