Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix incorrect alias/name usage.
Fixes #2317
  • Loading branch information
markstory committed Nov 30, 2011
1 parent 8568ac6 commit 992a155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Model/Behavior/TreeBehavior.php
Expand Up @@ -562,7 +562,7 @@ public function recover($Model, $mode = 'parent', $missingParentAction = null) {
$Model->recursive = $recursive;
if ($mode == 'parent') {
$Model->bindModel(array('belongsTo' => array('VerifyParent' => array(
'className' => $Model->alias,
'className' => $Model->name,
'foreignKey' => $parent,
'fields' => array($Model->primaryKey, $left, $right, $parent),
))));
Expand Down Expand Up @@ -770,7 +770,7 @@ public function verify($Model) {
}

$Model->bindModel(array('belongsTo' => array('VerifyParent' => array(
'className' => $Model->alias,
'className' => $Model->name,
'foreignKey' => $parent,
'fields' => array($Model->primaryKey, $left, $right, $parent)
))));
Expand Down

0 comments on commit 992a155

Please sign in to comment.