Hi,
Le 1 oct. 07 ? 22:28, Cynthia Kiser a ?crit :
> Why is setting of parent_id directly prohibited?
>
Iirc, the idea behind all this was to avoid breaking AR logic.
In AR objects, setting a property value doesn''t save the object,
neither does it save or change magically other objects of the same type.
Due to the way nested set works, moving a tree impacts more than
setting a property value.
We preferred to have a heavy explicit method to be used than magic
doing some changes in the background.
Jean-Christophe Michel