diff --git a/cake/libs/model/behaviors/tree.php b/cake/libs/model/behaviors/tree.php index 44f97ac19..77ebf0889 100644 --- a/cake/libs/model/behaviors/tree.php +++ b/cake/libs/model/behaviors/tree.php @@ -382,7 +382,7 @@ class TreeBehavior extends ModelBehavior { if (!is_null($overrideRecursive)) { $recursive = $overrideRecursive; } - $parentId = $Model->read($parent, $id); + $parentId = $Model->find('first', array('conditions' => array($Model->primaryKey => $id), 'fields' => array($parent), 'recursive' => -1)); if ($parentId) { $parentId = $parentId[$Model->alias][$parent];