mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Fix taxon repository
This commit is contained in:
parent
2710777360
commit
e6fabb223d
1 changed files with 1 additions and 3 deletions
|
|
@ -91,12 +91,10 @@ class TaxonRepository extends EntityRepository implements TaxonRepositoryInterfa
|
|||
*/
|
||||
public function findNodesTreeSorted($rootCode = null)
|
||||
{
|
||||
return $this->createQueryBuilder('o')
|
||||
$queryBuilder = $this->createQueryBuilder('o')
|
||||
->addOrderBy('o.root')
|
||||
->addOrderBy('o.left')
|
||||
->addOrderBy('o.position')
|
||||
->getQuery()
|
||||
->getResult()
|
||||
;
|
||||
|
||||
if (null !== $rootCode) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue