Ok, I've found my mistake. I created the Aros, Acos tables before using the cake bake command. So when I used the AclBehavior, it was trying to use the node() function from the Aro's class autogenerated by Cake bake command, not the one from the AclBehavior.
I needed a good night sleep to finally being able to see this :/ Le dimanche 24 novembre 2013 16:20:45 UTC+1, thebeardman a écrit : > > Hi, > > I'm using CakePHP 2.4.2 and I followed the tuto to use the core Acl > behavior. > I am able to create an usergroup and its Aros correctly. > However when I'm trying to add a new user, the user is correctly inserted > in the User table but the Aro's not. > I'm having the same issue as this one : > https://groups.google.com/forum/#!msg/cake-php/J964MBrQJ9A/_CXWk0BsSVkJbut > because it is a bit old, I thought I should open a new one. > > Here my User Model : > http://pastebin.com/pGc1U7S8<http://www.google.com/url?q=http%3A%2F%2Fpastebin.com%2FpGc1U7S8&sa=D&sntz=1&usg=AFQjCNEGS0UBox9mJSWs2u4OqVO9yAu7SQ> > Here the errors I have when trying to add a new user: > http://pastebin.com/UUDnxwsc<http://www.google.com/url?q=http%3A%2F%2Fpastebin.com%2FUUDnxwsc&sa=D&sntz=1&usg=AFQjCNH-zoM-W_fupJqSG4KHThQKbY1Gbw> > > As far as I understand the Acl behavior, it's like the AclBehavior object > never call the Aro->node() function. > > If I return null directly in the User model parentNode() function, it is > working but the I don't have the linked with the user's usergroup. > > How can I make it work? > > Thank for any advices. > -- 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/groups/opt_out.
