Code Context $result = array();
while (!empty($keys)) {
list($key, $dir) = each($keys);
$keys = array(
'Project.active' => 'ASC',
'Project.collected_amount' => 'DESC'
)
$direction = 'ASC'
$Model = object(Project) {
displayField => 'project_name'
actsAs => array(
'Filebinder.Bindable' => array(
[maximum depth reached]
)
)
bindFields => array(
(int) 0 => array(
[maximum depth reached]
)
)
validate => array(
'pic' => array(
[maximum depth reached]
),
'project_name' => array(
[maximum depth reached]
),
'goal_amount' => array(
[maximum depth reached]
),
'collection_term' => array(
[maximum depth reached]
),
'return' => array(
[maximum depth reached]
),
'rule' => array(
[maximum depth reached]
),
'contact' => array(
[maximum depth reached]
),
'description' => array(
[maximum depth reached]
)
)
belongsTo => array(
'Category' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
)
)
hasMany => array(
'BackingLevel' => array(
[maximum depth reached]
),
'Comment' => array(
[maximum depth reached]
),
'Report' => array(
[maximum depth reached]
),
'ProjectContent' => array(
[maximum depth reached]
),
'BackedProject' => array(
[maximum depth reached]
)
)
recursive => (int) -1
useDbConfig => 'default'
useTable => 'projects'
id => false
data => array()
schemaName => 'tunagaruhp_test'
table => 'projects'
primaryKey => 'id'
validationErrors => array()
validationDomain => null
tablePrefix => ''
plugin => null
name => 'Project'
alias => 'Project'
tableToModel => array(
'projects' => 'Project'
)
cacheQueries => false
hasOne => array()
hasAndBelongsToMany => array()
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => 'all'
order => null
virtualFields => array()
__backAssociation => array()
__backInnerAssociation => array()
__backOriginalAssociation => array()
__backContainableAssociation => array()
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
'all' => true,
'first' => true,
'count' => true,
'neighbors' => true,
'list' => true,
'threaded' => true
)
[protected] _schema => array(
'id' => array(
[maximum depth reached]
),
'setting_id' => array(
[maximum depth reached]
),
'project_name' => array(
[maximum depth reached]
),
'category_id' => array(
[maximum depth reached]
),
'area_id' => array(
[maximum depth reached]
),
'description' => array(
[maximum depth reached]
),
'goal_amount' => array(
[maximum depth reached]
),
'collection_term' => array(
[maximum depth reached]
),
'collection_start_date' => array(
[maximum depth reached]
),
'collection_end_date' => array(
[maximum depth reached]
),
'thumbnail_type' => array(
[maximum depth reached]
),
'thumbnail_movie_type' => array(
[maximum depth reached]
),
'thumbnail_movie_code' => array(
[maximum depth reached]
),
'user_id' => array(
[maximum depth reached]
),
'opened' => array(
[maximum depth reached]
),
'backers' => array(
[maximum depth reached]
),
'comment_cnt' => array(
[maximum depth reached]
),
'report_cnt' => array(
[maximum depth reached]
),
'collected_amount' => array(
[maximum depth reached]
),
'max_back_level' => array(
[maximum depth reached]
),
'created' => array(
[maximum depth reached]
),
'modified' => array(
[maximum depth reached]
),
'active' => array(
[maximum depth reached]
),
'stop' => array(
[maximum depth reached]
),
'return' => array(
[maximum depth reached]
),
'contact' => array(
[maximum depth reached]
),
'rule' => array(
[maximum depth reached]
),
'site_fee' => array(
[maximum depth reached]
),
'site_price' => array(
[maximum depth reached]
),
'project_owner_price' => 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
}
$result = array()each - [internal], line ??
DboSource::order() - CORE/Cake/Model/Datasource/DboSource.php, line 3030
DboSource::buildStatement() - CORE/Cake/Model/Datasource/DboSource.php, line 2011
DboSource::buildAssociationQuery() - CORE/Cake/Model/Datasource/DboSource.php, line 1737
DboSource::read() - CORE/Cake/Model/Datasource/DboSource.php, line 1182
Model::_readDataSource() - CORE/Cake/Model/Model.php, line 3038
Model::find() - CORE/Cake/Model/Model.php, line 3010
Project::get_toppage_pj() - APP/Model/Project.php, line 418
BaseController::index() - APP/Controller/BaseController.php, line 37
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 86