I have Aro and Aco tables and whole ACL is working just fine.
GroupsController operates on both using separate Aco and Aro objects
(using aliases as keys). Model is used only for data validation in
group edit form - it doesn't need any table. I'm not using it to any
read, find or save operations. I could use additional table 'groups'
to keep more information about groups there (and I will probably do
so) but for now I would only know what causes Cake to check that
'groups' table when I'm telling it that doesn't exist and I don't want
to do anything with that.

On 21 Lip, 20:35, cricket <[email protected]> wrote:
> On Wed, Jul 21, 2010 at 9:55 AM, Xander <[email protected]> wrote:
>
> > Second model is used to validate the GroupsController edit form. After
> > validation ACL's Aco Tree or both Aro and Aco Trees are updated (users
> > are in both trees, contents in aco only) using separate Aco and Aro
> > objects. I set useTable to false here too, but when using $this->Group-
> >>validates() Cake yells "Table ncube.groups doesn't exist (...)
>
> You cannot associate a model with ARO or ACO if there are no records
> for it in the DB. You must have a groups table so that groups.id key
> can be included in aros table.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to