Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_jobs
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_jobs
Commits
d055daab
Commit
d055daab
authored
6 years ago
by
Kevin Ditscheid
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Add a default ordering setting for the department repository
parent
5bf0f926
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/Domain/Repository/DepartmentRepository.php
+8
-1
8 additions, 1 deletion
Classes/Domain/Repository/DepartmentRepository.php
with
8 additions
and
1 deletion
Classes/Domain/Repository/DepartmentRepository.php
+
8
−
1
View file @
d055daab
...
...
@@ -26,6 +26,7 @@ namespace SGalinski\SgJobs\Domain\Repository;
* This copyright notice MUST APPEAR in all copies of the script!
*/
use
TYPO3\CMS\Extbase\Persistence\QueryInterface
;
use
TYPO3\CMS\Extbase\Persistence\Repository
;
/**
...
...
@@ -35,5 +36,11 @@ use TYPO3\CMS\Extbase\Persistence\Repository;
* @author Kevin Ditscheid <kevin.ditscheid@sgalinski.de>
*/
class
DepartmentRepository
extends
Repository
{
/**
* @var array
*/
protected
$defaultOrderings
=
[
'sorting'
=>
QueryInterface
::
ORDER_ASCENDING
,
'title'
=>
QueryInterface
::
ORDER_ASCENDING
];
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment