<?php

namespace App\Model\Repository;

use Nette;
use DateTime;
use Kdyby\Doctrine\EntityManager;

use App\Model\Entity\Role;

class Roles extends BaseRepository {

  public function __construct(EntityManager $em) {
    parent::__construct($em, Role::CLASS);
  }

  public function findLowestLevelRoles() {
    return $this->repository->findBy([ "parentRole" => NULL ]);
  }

}

<?php

namespace App\Model\Repository;

use Nette;
use DateTime;
use Kdyby\Doctrine\EntityManager;

use App\Model\Entity\Role;

class Roles extends BaseRepository {

  public function __construct(EntityManager $em) {
    parent::__construct($em, Role::CLASS);
  }

  public function findLowestLevelRoles() {
    return $this->roles->findBy([ "parentRole" => NULL ]);
  }

}

Revert "Bux in variable name"
Revert "Bux in variable name"

In favour of 3564cc2bfffac78fd7f85f1f2cd9bfbbaa45bf6e.

This reverts commit b57c8258a0932719143c9205b411524e8c4d006d.
