Code Context if (!isset($Model->{$name}) || !is_object($Model->{$name})) {
if ($throwErrors) {
trigger_error(__d('cake_dev', 'Model "%s" is not associated with model "%s"', $Model->alias, $name), E_USER_WARNING);
$Model = object(Post) {
validate => array(
'title' => array(
[maximum depth reached]
),
'photo' => array(
[maximum depth reached]
),
'thumbnail' => array(
[maximum depth reached]
),
'date' => array(
[maximum depth reached]
),
'short_description' => array(
[maximum depth reached]
),
'description' => array(
[maximum depth reached]
),
'empty_category' => array(
[maximum depth reached]
),
'account_id' => array(
[maximum depth reached]
),
'account_domain_id' => array(
[maximum depth reached]
),
'custom_url' => array(
[maximum depth reached]
)
)
hasMany => array(
'ViewPostCategory' => array(
[maximum depth reached]
),
'PostTag' => array(
[maximum depth reached]
)
)
hasOne => array(
'CustomUrl' => array(
[maximum depth reached]
),
'PostCategory' => array(
[maximum depth reached]
)
)
belongsTo => array(
'Account' => array(
[maximum depth reached]
),
'AccountDomain' => array(
[maximum depth reached]
),
'Game' => array(
[maximum depth reached]
)
)
recursive => (int) -1
actsAs => array(
(int) 0 => 'Containable',
(int) 1 => 'Common'
)
useDbConfig => 'default'
useTable => 'posts'
id => false
data => array()
schemaName => 'wynn96_live'
table => 'posts'
primaryKey => 'id'
validationErrors => array()
validationDomain => null
tablePrefix => ''
plugin => null
name => 'Post'
alias => 'Post'
tableToModel => array(
'posts' => 'Post',
'post_categories' => 'PostCategory',
'custom_urls' => 'CustomUrl'
)
cacheQueries => false
hasAndBelongsToMany => array()
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => 'all'
order => null
virtualFields => array(
'sort_order' => 'CASE WHEN Post.order = 0 THEN 1 ELSE 0 END'
)
__backAssociation => array(
'hasMany' => array(
[maximum depth reached]
)
)
__backInnerAssociation => array()
__backOriginalAssociation => array()
__backContainableAssociation => array()
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
'all' => true,
'first' => true,
'count' => true,
'neighbors' => true,
'list' => true,
'threaded' => true
)
CustomUrl => object(CustomUrl) {}
PostCategory => object(PostCategory) {}
[protected] _schema => array(
'id' => array(
[maximum depth reached]
),
'account_id' => array(
[maximum depth reached]
),
'account_domain_id' => array(
[maximum depth reached]
),
'game_id' => array(
[maximum depth reached]
),
'photo' => array(
[maximum depth reached]
),
'thumbnail' => array(
[maximum depth reached]
),
'slug' => array(
[maximum depth reached]
),
'title' => array(
[maximum depth reached]
),
'date' => array(
[maximum depth reached]
),
'short_description' => array(
[maximum depth reached]
),
'description' => array(
[maximum depth reached]
),
'meta_title' => array(
[maximum depth reached]
),
'meta_desc' => array(
[maximum depth reached]
),
'view_count' => array(
[maximum depth reached]
),
'order' => array(
[maximum depth reached]
),
'active' => array(
[maximum depth reached]
),
'status' => array(
[maximum depth reached]
),
'modified' => array(
[maximum depth reached]
),
'created' => 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
}
$contain = array(
(int) 0 => 'PostCategory',
(int) 1 => 'sort_order'
)
$containments = array(
'models' => array(
'PostCategory' => array(
'keep' => array([maximum depth reached]),
'instance' => object(PostCategory) {}
)
),
'depth' => (int) 0
)
$throwErrors = true
$keep = array(
'PostCategory' => array()
)
$children = array()
$name = 'sort_order'
$keys = array()
$depths = array(
(int) 0 => (int) 1
)
ContainableBehavior::containments() - CORE/Cake/Model/Behavior/ContainableBehavior.php, line 342
ContainableBehavior::beforeFind() - CORE/Cake/Model/Behavior/ContainableBehavior.php, line 123
ObjectCollection::trigger() - CORE/Cake/Utility/ObjectCollection.php, line 129
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 244
Model::buildQuery() - APP/Model/Model.php, line 3111
Model::find() - APP/Model/Model.php, line 3021
AppModel::find() - APP/Model/AppModel.php, line 43
PaginatorComponent::paginate() - CORE/Cake/Controller/Component/PaginatorComponent.php, line 212
Controller::paginate() - APP/Controller/Controller.php, line 1107
ClPostComponent::_callPosts() - APP/Controller/Component/ClPostComponent.php, line 204
ClPostComponent::_callPostsByCategory() - APP/Controller/Component/ClPostComponent.php, line 258
PagesController::post() - APP/Controller/PagesController.php, line 92
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - APP/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 117