I've stumbled upon this problem a while ago and fixed this by editing the core AclBehaviour, but i'm strugelling to get around this. Can someone explain me why this is the default behaviour? i'll take you through, step by step, of what I'm doing, and what's my problem.
1. I've got a model, Item, this actsAs Tree and Acl => controlled 2. I add 3 items, item1, item2 (with item1 as parent) and item3 (with item2 as its parent) 3. in the acos table I've now got 3 rows, with parent_ids respectively null, 1 and 2 4. I go and edit the item3, i set its parent from item2 to item1 5. in the acos table, the parent_ids are still null, 1 and 2 instead of null, 1 and 1 Am I totally missing the point here? The solution I came up with a while ago can be found on my blog. This solution only works for acos or aros defined with Model and foreign_key, not with aliases. http://www.mythix.be/cakePHP/enhancing-cakephps-built-in-acl-bhaviour --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
