fixes #5339 incorrect bracketting for bindModel statement in tree behavior recover method. removing the actsAs key

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7526 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
AD7six 2008-08-27 14:05:58 +00:00
parent e64af40530
commit 5e11e1490b

View file

@ -540,8 +540,7 @@ class TreeBehavior extends ModelBehavior {
$model->bindModel(array('belongsTo' => array('VerifyParent' => array( $model->bindModel(array('belongsTo' => array('VerifyParent' => array(
'className' => $model->alias, 'className' => $model->alias,
'foreignKey' => $parent, 'foreignKey' => $parent,
'fields' => array($model->primaryKey, $left, $right, $parent, 'fields' => array($model->primaryKey, $left, $right, $parent),
'actsAs' => '')
)))); ))));
$missingParents = $model->find('list', array( $missingParents = $model->find('list', array(
'recursive' => 0, 'recursive' => 0,