That sounds like the ListBehavior. This is a version of it for cake 
2 https://github.com/CakeDC/utils/blob/master/Model/Behavior/ListBehavior.php

It will need to be updated for the new ORM

On Thursday, February 5, 2015 at 4:55:20 AM UTC-4:30, Dieter Gribnitz wrote:
>
> Are there any built in behaviors to deal with reordering entries by a 
> weight column?
>
> Lets say I want to move an entry from 5 to 3.
> 3 should update to a weight key of 4 and 4 should update to a weight key 
> of 5
>
> In addition, how do you set the default field to witch results should be 
> sorted by.
>
> Scanned through the docs and could not find anything relating to this.
> Any links to relevant documentation on this matter would be greatly 
> helpful.
>
>
> Thanks.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to