Comments (1)
repo->moveUp($node, 3) would shift the node up by 3 positions. So generally when you implement the sorting for tree. It is more user friendly to show sorting by steps up or down. In your way user would need to count the nodes, on parent, what if there are hundreds of them? I do not see the point of doing that, if you do and if I do not understand it. Then you can easily add this function into your extended repository and simple count the childrens, and current node position, and then moveUp or moveDown the node for needed number of steps.
from doctrineextensions.
Related Issues (20)
- symfony 7 compatibility HOT 2
- Translatable: Field name length exceeds field length in translations table when using Embeddable
- Entity with TimestampableEntity trait fails on PUT operation HOT 6
- [Loggable] restore data without flush HOT 1
- Timestampable not working in 2.17 HOT 2
- [Timestampable] symfony/clock integration
- [Timestampable] symfony/clock integration
- SoftDeleteable is ignored and delete records hardly HOT 3
- [Loggable] Incomplete documentation on how to use custom LogEntry entity HOT 1
- Timestampable (and maybe more extensions) don't work with DBAL 4.0.0-RC2 HOT 6
- Semantical Error WITH Doctrine ORM 3.0 HOT 2
- [Tree & Doctrine 3] Fatal Compile Error: Declaration of Gedmo\Tree\Entity\Repository\NestedTreeRepository::__call($method, $args) ... HOT 2
- string $targetTableAlias HOT 2
- in Symfony 7 annotation_reader no exists
- [Loggable] Add option to store prev data
- The bundle not set automatcly the value to updated_at and created_at columns when persisting data HOT 5
- Missing Reference Listener in the documentation
- [Tree] [materializedPath] Deleting parent removes children when onDelete="restrict" HOT 2
- Cannot get DoctrineExtensions to work with Symfony 7 HOT 2
- The service "gedmo.listener.softdeleteable" has a dependency on a non-existent service "annotation_reader". HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doctrineextensions.