Code Context private function _getParentNode($result,$model,$parent_id=null){
$parent=$model->SubitemBehaviorConfig['parentkey'];
if(!isset($parent_id)) $parent_id=$result[$model->alias]['parent_id'];
$result = array(
'Categoria' => array(
'Subcategorias' => array(),
'Parents' => array()
)
)
$model = object(Categoria) {
diplayField => 'title'
recursive => (int) 3
actsAs => array(
'Painel.Slug' => array(
[maximum depth reached]
),
(int) 0 => 'Tree',
(int) 1 => 'Painel.Attachments',
'Painel.Subitem' => array(
[maximum depth reached]
)
)
tablePrefix => 'tb_'
useDbConfig => 'default'
useTable => 'categorias'
id => false
data => array()
schemaName => 'doglio'
table => 'categorias'
primaryKey => 'id'
validate => array()
validationErrors => array()
validationDomain => null
plugin => 'Downloads'
name => 'Categoria'
alias => 'Categoria'
tableToModel => array(
'categorias' => 'Categoria'
)
cacheQueries => false
belongsTo => array()
hasOne => array()
hasMany => array()
hasAndBelongsToMany => array()
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => null
order => null
virtualFields => array()
__backAssociation => array()
__backInnerAssociation => array()
__backOriginalAssociation => array()
__backContainableAssociation => array()
findMethods => array(
'all' => true,
'first' => true,
'count' => true,
'neighbors' => true,
'list' => true,
'threaded' => true
)
attachmentsConfig => array()
SubitemBehaviorConfig => array(
'subkey' => 'Subcategorias',
'parentkey' => 'Parents'
)
displayField => 'title'
[protected] _schema => array(
'id' => array(
[maximum depth reached]
),
'parent_id' => array(
[maximum depth reached]
),
'lft' => array(
[maximum depth reached]
),
'rght' => array(
[maximum depth reached]
),
'title' => array(
[maximum depth reached]
),
'content' => array(
[maximum depth reached]
),
'cover' => array(
[maximum depth reached]
),
'order' => array(
[maximum depth reached]
),
'slug' => array(
[maximum depth reached]
),
'created' => array(
[maximum depth reached]
),
'modified' => array(
[maximum depth reached]
)
)
[protected] _associationKeys => array(
'belongsTo' => array(
[maximum depth reached]
),
'hasOne' => array(
[maximum depth reached]
),
'hasMany' => array(
[maximum depth reached]
),
'hasAndBelongsToMany' => array(
[maximum depth reached]
)
)
[protected] _associations => array(
(int) 0 => 'belongsTo',
(int) 1 => 'hasOne',
(int) 2 => 'hasMany',
(int) 3 => 'hasAndBelongsToMany'
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
$parent_id = null
$parent = 'Parents'
SubitemBehavior::_getParentNode() - APP/Plugin/Painel/Model/Behavior/SubitemBehavior.php, line 71
SubitemBehavior::getCurrent() - APP/Plugin/Painel/Model/Behavior/SubitemBehavior.php, line 36
BehaviorCollection::dispatchMethod() - CORE/Cake/Model/BehaviorCollection.php, line 244
Model::__call() - CORE/Cake/Model/Model.php, line 796
Categoria::getCurrent() - APP/Plugin/Downloads/Controller/DownloadsController.php, line 35
DownloadsController::view() - APP/Plugin/Downloads/Controller/DownloadsController.php, line 35
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 109