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(Sport) {
name => 'Sport'
translateModel => 'SportI18n'
translateTable => 'sports_i18n'
actsAs => array(
(int) 0 => 'Containable',
'Translate' => array(
[maximum depth reached]
)
)
hasMany => array(
'League' => array(
[maximum depth reached]
)
)
insert_ids => array()
useDbConfig => 'default'
useTable => 'sports'
id => false
data => array()
schemaName => 'nftjhomecare6854_company'
table => 'sports'
primaryKey => 'id'
validate => array()
validationErrors => array()
validationDomain => null
plugin => null
alias => 'Sport'
tableToModel => array(
'sports' => 'Sport',
'leagues' => 'League',
'sports_i18n' => 'SportI18n'
)
cacheQueries => false
belongsTo => array()
hasOne => array()
hasAndBelongsToMany => array()
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => 'all'
recursive => (int) 1
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
)
League => object(League) {}
locale => 'eng'
tablePrefix => ''
[protected] _schema => array(
'id' => array(
[maximum depth reached]
),
'import_id' => array(
[maximum depth reached]
),
'active' => array(
[maximum depth reached]
),
'order' => array(
[maximum depth reached]
),
'min_bet' => array(
[maximum depth reached]
),
'max_bet' => array(
[maximum depth reached]
),
'updated' => array(
[maximum depth reached]
),
'feed_type' => array(
[maximum depth reached]
)
)
[protected] _types => array(
'int' => 'number',
'tinyint' => 'number',
'text' => 'text',
'string' => 'text'
)
[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(
'SportI18n' => array(
'conditions' => array(
'SportI18n.locale' => 'eng'
)
)
)
$containments = array()
$throwErrors = true
$options = array(
(int) 0 => 'className',
(int) 1 => 'joinTable',
(int) 2 => 'with',
(int) 3 => 'foreignKey',
(int) 4 => 'associationForeignKey',
(int) 5 => 'conditions',
(int) 6 => 'fields',
(int) 7 => 'order',
(int) 8 => 'limit',
(int) 9 => 'offset',
(int) 10 => 'unique',
(int) 11 => 'finderQuery'
)
$keep = array(
'SportI18n' => array(
'conditions' => array(
'SportI18n.locale' => 'eng'
)
)
)
$name = 'SportI18n'
$children = array()
$key = 'conditions'
$val = array(
'SportI18n.locale' => 'eng'
)
$keys = array(
(int) 0 => 'conditions'
)
$i = (int) 0
$optionKey = true
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 132
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 247
Model::buildQuery() - CORE/Cake/Model/Model.php, line 2954
Model::find() - CORE/Cake/Model/Model.php, line 2869
Sport::getLiveMenuList() - APP/Model/Sport.php, line 604
AppController::beforeFilter() - APP/Controller/AppController.php, line 203
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 247
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 674
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 154
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 92
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 119
[main] - [internal], line ??