I gave the names "GroupShell" and "Group" to shell and model
respectively. It works fine on CakePHP 1.2.0 6311b. However, when I
try my add with CakePHP 1.2.0 6718, it doesn't work. I found that in
cake/console/libs/shell.php, ClassRegistry::addObject($shellKey,
$this) (which $shellKey="group") is called. Thus in
cake/libs/model/behavior.php: BehaviorCollection->attach,
ClassRegistry::getObject($this->modelName) returns shell instead of
model.

Should I avoid giving the same name to shell and model or file this as bug?

-- 
वीर http://blog.vee-u.com/

--~--~---------~--~----~------------~-------~--~----~
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