ensure both node() and afterSave() use ->name

This commit is contained in:
Ceeram 2011-02-28 21:16:17 +01:00
parent e05c6cd83f
commit 8c277b5612

View file

@ -96,7 +96,7 @@ class AclBehavior extends ModelBehavior {
}
$data = array(
'parent_id' => isset($parent[0][$type]['id']) ? $parent[0][$type]['id'] : null,
'model' => $model->alias,
'model' => $model->name,
'foreign_key' => $model->id
);
if (!$created) {