Question about CDbAuthManager

Hi all!

I have such problem: I use CDbAuthManager, and I want to add operation to the role, which already exists in table AuthItem. How I can do this, using $auth->addChild? $auth->createRole will not work, because this role already exists early.

Yes, you create the roles, operations and tasks and then use addChild to make the tree assignments. You don’t need to create new items if they already exist.