On 23 May 2008, at 09:51, BrendonKoz wrote:

> Also...why does the AclBehavior not offer a way to specify the alias
> upon save if the alias is necessary for most of the Auth/ACL
> functionality?  Is there any reasoning behind it?

I would be very interested to hear that as well. The only "reason" I  
have ever seen is here:
https://trac.cakephp.org/ticket/2942#comment:8

I'm doing this in my controller after a user has been registered  
successfully:

$aroRecord = $this->User->Aro->findByForeignKey($this->User- 
 >getLastInsertID());
$aroRecord['Aro']['alias'] = $this->data['User']['username'];
$this->User->Aro->save($aroRecord);

Guess I could move that to some afterSave() callback, but it works okay.

Chrs,
Dav

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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