Skip to content

[Sortable] Add Option to SortableGroup to ignore null values #3022

@naturefund-falk

Description

@naturefund-falk

I would like to propose an option that sortable does not sort when SortableGroup-property is null (or maybe also zero). Maybe something like #[Gedmo\SortableGroup(ignoreNull: true)]
Background here is that i have an entity with SortableGroup set on a relation which in many cases is set to null. I dont need this entries sorted, as there ist no related entity.
Maybe this could also a default behavior if sortableGroup is defined on a relation-property, but this would change current behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions