Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Fork Pix Digital Pix Sortable Behavior Bundle

Fork Pix Digital Pix Sortable Behavior Bundle Laravel Package

paysera/fork-pix-digital-pix-sortable-behavior-bundle

Paysera’s fork of the Pix Digital Sortable Behavior Bundle adds sortable behavior to Doctrine entities in Symfony, making it easy to manage custom ordering and reorder records through position fields.

View on GitHub
Deep Wiki
Context7

Offers a sortable feature for your Symfony2 admin listing

Frequently asked questions about Fork Pix Digital Pix Sortable Behavior Bundle
How do I install paysera/fork-pix-digital-pix-sortable-behavior-bundle?
Install it with Composer using composer require paysera/fork-pix-digital-pix-sortable-behavior-bundle, then register the bundle in your Symfony kernel and enable the sortable behavior on the target Doctrine entity. Because it is a Symfony bundle, there is no Laravel service provider or config file to publish. Confirm the required Symfony and Doctrine versions in the package's composer.json before installing.
Does this package work with Laravel?
No. This is a Symfony2 bundle built around Symfony bundle registration and Doctrine entity behavior, so it does not integrate with Laravel's service container or Eloquent ORM. Laravel developers needing similar ordering should use an Eloquent sortable trait package or implement a position column with model events. Treat this package as a reference only if you are working in a legacy Symfony codebase.
Which Symfony versions are supported?
The package is described as a Symfony2 bundle, and this Paysera fork may not have been updated for modern Symfony releases. Check the composer.json constraints and the repository's recent commits before assuming compatibility with Symfony 5, 6, or 7. For new projects, prefer a maintained sortable extension that explicitly supports your Symfony version.
How does the sortable behavior store order?
The behavior adds a position field to your Doctrine entity and keeps it updated when records are inserted, moved, or deleted. Reordering typically happens through bundle-provided methods that shift neighboring positions rather than rewriting every row. The exact column name and configuration options should be verified in the bundle's README.
How do I reorder records in a Symfony admin listing?
The bundle is aimed at Symfony2 admin listings and provides sortable behavior that your admin controller or template can call to move records up and down. Typical integrations expose AJAX endpoints that update the position field and refresh the listing. Review the README for the specific controller and template hooks included in this fork.
Can I have multiple independent sortable groups?
Sortable behavior packages commonly support grouping so positions are calculated within a scope such as a category or parent record. This bundle's description mentions custom ordering through position fields but does not detail grouping in the excerpt. Inspect the entity mapping and configuration to confirm whether group fields are supported in this fork.
Why are my positions duplicated or not updating?
Duplicate or stale positions usually mean the position column is not mapped correctly, the sortable listener is not active, or records were updated with direct SQL that bypassed Doctrine events. They can also happen when the grouping configuration changed without recalculating existing rows. Re-save the affected records through the sortable API and check that the entity uses the expected behavior configuration.
How do I test sortable behavior in my Symfony app?
Write functional tests that persist several entities, move one record, flush, and assert the resulting position values from the database. Use a test database with transaction rollback so ordering changes do not leak between tests. If the bundle relies on Doctrine event listeners, boot the Symfony kernel in your test case so those listeners are registered.
Is this package safe for production and actively maintained?
This is a Paysera fork of a Pix Digital bundle, which suggests it exists to keep a legacy dependency working rather than to track modern Symfony releases. Before using it in production, pin the exact version, review the code, and confirm it is compatible with your Symfony and Doctrine versions. If the repository shows little recent activity, plan a migration path to a maintained alternative.
What are alternatives to this sortable behavior bundle?
Common alternatives include Gedmo DoctrineExtensions Sortable, KnpLabs DoctrineBehaviors, or a small custom position column with Doctrine lifecycle callbacks. The best choice depends on whether you need grouping, Symfony admin integration, and support for your Symfony version. For Laravel projects, use an Eloquent sortable package instead of a Symfony bundle.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource