Skip to content

Commit 595a15d

Browse files
authored
Add nulls_always_first and nulls_always_last configuration options (#1297)
1 parent d1f5fc3 commit 595a15d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/filters.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ Description | Strategy to set
458458
Use the default behavior of the DBMS | `null`
459459
Consider items as smallest | `ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\OrderFilter::NULLS_SMALLEST` (`nulls_smallest`)
460460
Consider items as largest | `ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\OrderFilter::NULLS_LARGEST` (`nulls_largest`)
461+
Order items always first | `ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\OrderFilter::NULLS_ALWAYS_FIRST` (`nulls_always_first`)
462+
Order items always last | `ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\OrderFilter::NULLS_ALWAYS_LAST` (`nulls_always_last`)
461463

462464
For instance, treat entries with a property value of `null` as the smallest, with the following service definition:
463465

0 commit comments

Comments
 (0)