/** * @return Permission[] */ public function getPermissions() { $repo = new PermissionRepository($this->db); return $repo->order('name', 'ASC')->find(); }