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 :
-- 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/ but because it is a bit old, I thought I should open a new one.J964MBrQJ9A/_CXWk0BsSVkJ
Here my User Model : http://pastebin.com/pGc1U7S8
Here the errors I have when trying to add a new user: http://pastebin.com/UUDnxwsc
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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment