Permalink
Browse files

Fix incorrect alias/name usage.

Fixes #2317
  • Loading branch information...
markstory committed Nov 30, 2011
1 parent ff993f8 commit fc38787830f135dc635a3464a77edf75512c837b
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/model/behaviors/tree.php
@@ -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),
))));
@@ -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)
))));

0 comments on commit fc38787

Please sign in to comment.