Skip to content

Commit

Permalink
Fix incorrect alias/name usage.
Browse files Browse the repository at this point in the history
Fixes #2317
  • Loading branch information
markstory committed Nov 30, 2011
1 parent ff993f8 commit fc38787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/model/behaviors/tree.php
Expand Up @@ -574,7 +574,7 @@ 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 @@ -785,7 +785,7 @@ 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 fc38787

Please sign in to comment.