I am getting a really strange behavior and I cannot figure out how to
debug it.
I have my ACL component setup as so:
- controller
- ACO's are realms a user is part of (permissions are given by realm)
This works great when I add/modify through the admin routines auto
generated. However, I now want users to be able to register. I create
the realm on the fly in the code and it creates the realm, but after
creating the realm it gives me the error below. Everything I have
tried to find where the error is coming from leads me no where. Any
pointers would be appreciated:
Notice (8): Undefined property: Realm::$Aro [CORE\cake\libs\model
\behaviors\acl.php, line 77]
Code | Context
$model = Realm
Realm::$name = "Realm"
Realm::$validate = array
Realm::$actsAs = array
Realm::$hasMany = array
Realm::$belongsTo = array
Realm::$useDbConfig = "default"
Realm::$useTable = "realms"
Realm::$displayField = "name"
Realm::$id = "42"
Realm::$data = array
Realm::$table = "realms"
Realm::$primaryKey = "id"
Realm::$_schema = array
Realm::$validationErrors = array
Realm::$tablePrefix = ""
Realm::$alias = "Realm"
Realm::$tableToModel = array
Realm::$logTransactions = false
Realm::$transactional = false
Realm::$cacheQueries = false
Realm::$hasOne = array
Realm::$hasAndBelongsToMany = array
Realm::$Behaviors = BehaviorCollection object
Realm::$whitelist = array
Realm::$cacheSources = true
Realm::$findQueryType = NULL
Realm::$recursive = 1
Realm::$order = NULL
Realm::$__exists = NULL
Realm::$__associationKeys = array
Realm::$__associations = array
Realm::$__backAssociation = array
Realm::$__insertID = "42"
Realm::$__numRows = NULL
Realm::$__affectedRows = NULL
Realm::$_findMethods = array
Realm::$_log = NULL
Realm::$User = User object
$ref = array(
"Realm" => array(
"id" => 2
)
)
$type = "Aro"
$ref = array('model' => $model->name, 'foreign_key' =>
$model->id);
}
return $model->{$type}->node($ref);
AclBehavior::node() - CORE\cake\libs\model\behaviors\acl.php, line 77
AclBehavior::afterSave() - CORE\cake\libs\model\behaviors\acl.php,
line 91
ModelBehavior::dispatchMethod() - CORE\cake\libs\model\behavior.php,
line 162
BehaviorCollection::trigger() - CORE\cake\libs\model\behavior.php,
line 440
Model::save() - CORE\cake\libs\model\model.php, line 1244
UsersController::signup() - APP\controllers\users_controller.php, line
155
Object::dispatchMethod() - CORE\cake\libs\object.php, line 115
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 245
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 211
[main] - APP\webroot\index.php, line 91
Fatal error: Call to a member function node() on a non-object in C:
\xampp\htdocs\ispi\cake\libs\model\behaviors\acl.php on line 77
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---