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(Advertisement) {
displayField => 'title'
hasAndBelongsToMany => array(
'Contractor' => array(
[maximum depth reached]
)
)
belongsTo => array(
'Category' => array(
[maximum depth reached]
),
'Rieltor' => array(
[maximum depth reached]
),
'TermRent' => array(
[maximum depth reached]
),
'State' => array(
[maximum depth reached]
),
'LastModificationUser' => array(
[maximum depth reached]
),
'ContractorStatus' => array(
[maximum depth reached]
),
'ContractType' => array(
[maximum depth reached]
),
'Location' => array(
[maximum depth reached]
),
'Source' => array(
[maximum depth reached]
)
)
hasMany => array(
'AdvertisementPicture' => array(
[maximum depth reached]
),
'CategoryParamValue' => array(
[maximum depth reached]
),
'AdStatusLog' => array(
[maximum depth reached]
),
'AdvertisementDoc' => array(
[maximum depth reached]
),
'Event' => array(
[maximum depth reached]
),
'RevisionHistory' => array(
[maximum depth reached]
),
'Task' => array(
[maximum depth reached]
),
'Collation' => array(
[maximum depth reached]
)
)
validate => array(
'price' => array(
[maximum depth reached]
)
)
actsAs => array(
'Containable' => null,
'ComplexCategories.ComplexCategory' => null,
'ComplexCategories.CategoryParams' => null,
'ComplexCategories.CategoryParamsValue' => null,
'Agency.AdvertisementPicture' => null,
'Agency.PriceArea' => null,
'Agency.Docs' => array([maximum depth reached]),
'Time' => array(
[maximum depth reached]
),
'Search.Searchable' => null,
'Contractors.Contractor' => array([maximum depth reached]),
'Agency.ImportFields' => array([maximum depth reached]),
'Histories.History' => array([maximum depth reached]),
'Locations.AdvertisementLocation' => array([maximum depth reached]),
'Collations.Statistic' => array([maximum depth reached]),
'ScopeProfile.ContractorScope' => array(
[maximum depth reached]
),
'ParsedGrabber.ParsedActions' => array([maximum depth reached])
)
filterArgs => array(
'id' => array(
[maximum depth reached]
),
'category_id' => array(
[maximum depth reached]
),
'parent_id' => array(
[maximum depth reached]
),
'external_id' => array(
[maximum depth reached]
),
'source_id' => array(
[maximum depth reached]
),
'state_id' => array(
[maximum depth reached]
),
'rieltor_id' => array(
[maximum depth reached]
),
'contractor_id' => array(
[maximum depth reached]
),
'contractor_phone' => array(
[maximum depth reached]
),
'checked' => array(
[maximum depth reached]
),
'free' => array(
[maximum depth reached]
),
'not_free' => array(
[maximum depth reached]
),
'moderated' => array(
[maximum depth reached]
),
'in_slider' => array(
[maximum depth reached]
),
'in_hot' => array(
[maximum depth reached]
),
'my' => array(
[maximum depth reached]
),
'subordinates' => array(
[maximum depth reached]
),
'rent' => array(
[maximum depth reached]
),
'note' => array(
[maximum depth reached]
),
'contractor_status_id' => array(
[maximum depth reached]
),
'all' => array(
[maximum depth reached]
),
'with_photo' => array(
[maximum depth reached]
),
'term_rent_id' => array(
[maximum depth reached]
),
'price_from' => array(
[maximum depth reached]
),
'price_to' => array(
[maximum depth reached]
),
'price_sot_from' => array(
[maximum depth reached]
),
'price_sot_to' => array(
[maximum depth reached]
),
'price_area_from' => array(
[maximum depth reached]
),
'price_area_to' => array(
[maximum depth reached]
),
'search' => array(
[maximum depth reached]
),
'overdue' => array(
[maximum depth reached]
),
'all_area_from' => array(
[maximum depth reached]
),
'all_area_to' => array(
[maximum depth reached]
),
'rooms_num' => array(
[maximum depth reached]
),
'material' => array(
[maximum depth reached]
),
'floor' => array(
[maximum depth reached]
),
'floor_from' => array(
[maximum depth reached]
),
'floor_to' => array(
[maximum depth reached]
),
'apartment_project' => array(
[maximum depth reached]
),
'window_location' => array(
[maximum depth reached]
),
'wc_type' => array(
[maximum depth reached]
),
'apartment_type' => array(
[maximum depth reached]
),
'area' => array(
[maximum depth reached]
),
'area_from' => array(
[maximum depth reached]
),
'area_to' => array(
[maximum depth reached]
),
'floors' => array(
[maximum depth reached]
),
'floors_from' => array(
[maximum depth reached]
),
'floors_to' => array(
[maximum depth reached]
),
'ploschad_uchastka' => array(
[maximum depth reached]
),
'ploschad_uchastka_from' => array(
[maximum depth reached]
),
'ploschad_uchastka_to' => array(
[maximum depth reached]
),
'schetchiki' => array(
[maximum depth reached]
),
'tip_kommercheskoy' => array(
[maximum depth reached]
),
'tip_garazha' => array(
[maximum depth reached]
),
'roomLocations' => array(
[maximum depth reached]
),
'ploschad_uchastka-1' => array(
[maximum depth reached]
),
'ploschad_uchastka-1_from' => array(
[maximum depth reached]
),
'ploschad_uchastka-1_to' => array(
[maximum depth reached]
),
'kategoriya_zemli' => array(
[maximum depth reached]
),
'tip_dachi' => array(
[maximum depth reached]
),
'live_area' => array(
[maximum depth reached]
),
'live_area_from' => array(
[maximum depth reached]
),
'live_area_to' => array(
[maximum depth reached]
),
'kitchen_area' => array(
[maximum depth reached]
),
'kitchen_area_from' => array(
[maximum depth reached]
),
'kitchen_area_to' => array(
[maximum depth reached]
),
'komnat_na_prodazhu' => array(
[maximum depth reached]
),
'teh_etazh' => array(
[maximum depth reached]
),
'otoplenie' => array(
[maximum depth reached]
),
'uglovaya' => array(
[maximum depth reached]
),
'planirovka' => array(
[maximum depth reached]
),
'sostoyanie' => array(
[maximum depth reached]
),
'stpakety' => array(
[maximum depth reached]
),
'pokaz_kv_' => array(
[maximum depth reached]
),
'god_postroyki' => array(
[maximum depth reached]
),
'god_postroyki_from' => array(
[maximum depth reached]
),
'god_postroyki_to' => array(
[maximum depth reached]
),
'pokr_pola' => array(
[maximum depth reached]
),
'mebel' => array(
[maximum depth reached]
),
'rem_su' => array(
[maximum depth reached]
),
'balkonlodzhiya' => array(
[maximum depth reached]
),
'sobst_kv_' => array(
[maximum depth reached]
),
'v_sobst_kv_' => array(
[maximum depth reached]
),
'orientir' => array(
[maximum depth reached]
),
'kommunikacii' => array(
[maximum depth reached]
),
'vid_prava' => array(
[maximum depth reached]
),
'kadastrovyy_nomer' => array(
[maximum depth reached]
),
'sobstvenniki' => array(
[maximum depth reached]
),
'so' => array(
[maximum depth reached]
),
'tip_doma' => array(
[maximum depth reached]
),
'location_region_id' => array(
[maximum depth reached]
),
'district_id' => array(
[maximum depth reached]
),
'locality_id' => array(
[maximum depth reached]
),
'county_id' => array(
[maximum depth reached]
),
'direction_id' => array(
[maximum depth reached]
),
'metro_id' => array(
[maximum depth reached]
),
'add_direction_id' => array(
[maximum depth reached]
),
'street_id' => array(
[maximum depth reached]
),
'sub_locality_id' => array(
[maximum depth reached]
),
'micro_district_id' => array(
[maximum depth reached]
),
'house' => array(
[maximum depth reached]
),
'method_movement_id' => array(
[maximum depth reached]
),
'distance_to_mkad_from' => array(
[maximum depth reached]
),
'distance_to_mkad_to' => array(
[maximum depth reached]
),
'mkad_from' => array(
[maximum depth reached]
),
'mkad_to' => array(
[maximum depth reached]
),
'time_to_metro_from' => array(
[maximum depth reached]
),
'time_to_metro_to' => array(
[maximum depth reached]
),
'native_identifier' => array(
[maximum depth reached]
)
)
virtualFields => array(
'count_photo' => 'SELECT count(*) FROM advertisement_pictures ap WHERE ap.advertisement_id = Advertisement.id',
'is_moderated' => 'IF((Advertisement.moderated=1 AND Advertisement.deleted IS NULL AND Advertisement.text <> ''), 1,0)'
)
useCache => true
useDbConfig => 'default'
useTable => 'advertisements'
id => false
data => array()
schemaName => 'vh210288_a39'
table => 'advertisements'
primaryKey => 'id'
validationErrors => array()
validationDomain => null
plugin => 'Agency'
name => 'Advertisement'
alias => 'Advertisement'
tableToModel => array(
'advertisements' => 'Advertisement',
'contractors' => 'Contractor',
'locations' => 'Location',
'term_rents' => 'TermRent',
'states' => 'State',
'categories' => 'Category',
'category_param_values' => 'CategoryParamValue',
'users' => 'Rieltor',
'advertisement_pictures' => 'AdvertisementPicture',
'collations' => 'Collation',
'events' => 'Event',
'advertisement_docs' => 'AdvertisementDoc'
)
cacheQueries => false
hasOne => array(
'Deal' => array(
[maximum depth reached]
)
)
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => 'first'
recursive => (int) 1
order => array(
'Advertisement.created' => 'desc',
'Advertisement.deleted' => 'asc'
)
__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
)
Contractor => object(Contractor) {}
Location => object(Location) {}
TermRent => object(TermRent) {}
tablePrefix => ''
State => object(State) {}
Category => object(Category) {}
CategoryParamValue => object(CategoryParamValue) {}
Rieltor => object(User) {}
AdvertisementPicture => object(AdvertisementPicture) {}
Collation => object(Collation) {}
Event => object(Event) {}
AdvertisementDoc => object(AdvertisementDoc) {}
[protected] _displayFields => array()
[protected] _editFields => array()
[protected] _schema => array(
'id' => array(
[maximum depth reached]
),
'contractor_id' => array(
[maximum depth reached]
),
'location_id' => array(
[maximum depth reached]
),
'price' => array(
[maximum depth reached]
),
'title' => array(
[maximum depth reached]
),
'primary' => array(
[maximum depth reached]
),
'moderated' => array(
[maximum depth reached]
),
'text' => array(
[maximum depth reached]
),
'sender_name' => array(
[maximum depth reached]
),
'rieltor_id' => array(
[maximum depth reached]
),
'note' => array(
[maximum depth reached]
),
'state_id' => array(
[maximum depth reached]
),
'state_history' => array(
[maximum depth reached]
),
'state_confirmed' => array(
[maximum depth reached]
),
'sell' => array(
[maximum depth reached]
),
'client_phone' => array(
[maximum depth reached]
),
'commission' => array(
[maximum depth reached]
),
'source_id' => array(
[maximum depth reached]
),
'ext_client_phone' => array(
[maximum depth reached]
),
'deleted' => array(
[maximum depth reached]
),
'id_last_modification_user' => array(
[maximum depth reached]
),
'category_id' => array(
[maximum depth reached]
),
'date' => array(
[maximum depth reached]
),
'phone' => array(
[maximum depth reached]
),
'created' => array(
[maximum depth reached]
),
'updated' => array(
[maximum depth reached]
),
'time_of_sale' => array(
[maximum depth reached]
),
'show_in_hot' => array(
[maximum depth reached]
),
'show_in_new_buildings' => array(
[maximum depth reached]
),
'auction' => array(
[maximum depth reached]
),
'is_new' => array(
[maximum depth reached]
),
'rent' => array(
[maximum depth reached]
),
'term_rent_id' => array(
[maximum depth reached]
),
'summ_rent' => array(
[maximum depth reached]
),
'show_in_slider' => array(
[maximum depth reached]
),
'native_identifier' => array(
[maximum depth reached]
),
'parsed' => array(
[maximum depth reached]
),
'from_site' => array(
[maximum depth reached]
),
'apartment' => array(
[maximum depth reached]
),
'old_price' => array(
[maximum depth reached]
),
'price_area' => array(
[maximum depth reached]
),
'external_id' => array(
[maximum depth reached]
),
'contractor_status_id' => array(
[maximum depth reached]
),
'contract_type_id' => array(
[maximum depth reached]
),
'additional_info' => array(
[maximum depth reached]
),
'negative_side' => array(
[maximum depth reached]
),
'positive_side' => array(
[maximum depth reached]
),
'basis_ownership_right_id' => array(
[maximum depth reached]
),
'count_owners' => array(
[maximum depth reached]
),
'entry_into_ownership_year' => array(
[maximum depth reached]
),
'deal_status_id' => array(
[maximum depth reached]
),
'allow_mortgage_id' => 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 => 'Category',
(int) 1 => 'CategoryParamValue',
(int) 2 => 'State',
(int) 3 => 'Rieltor',
(int) 4 => 'Contractor',
(int) 5 => 'AdvertisementPicture',
(int) 6 => 'Location',
(int) 7 => 'Collation',
(int) 8 => 'Event',
(int) 9 => 'AdvertisementDoc',
(int) 10 => 'AdvertisementPlatform'
)
$containments = array(
'models' => array(
'Category' => array(
'keep' => array([maximum depth reached]),
'instance' => object(Category) {}
),
'CategoryParamValue' => array(
'keep' => array([maximum depth reached]),
'instance' => object(CategoryParamValue) {}
),
'State' => array(
'keep' => array([maximum depth reached]),
'instance' => object(State) {}
),
'Rieltor' => array(
'keep' => array([maximum depth reached]),
'instance' => object(User) {}
),
'Contractor' => array(
'keep' => array([maximum depth reached]),
'instance' => object(Contractor) {}
),
'AdvertisementPicture' => array(
'keep' => array([maximum depth reached]),
'instance' => object(AdvertisementPicture) {}
),
'Location' => array(
'keep' => array([maximum depth reached]),
'instance' => object(Location) {}
),
'Collation' => array(
'keep' => array([maximum depth reached]),
'instance' => object(Collation) {}
),
'Event' => array(
'keep' => array([maximum depth reached]),
'instance' => object(Event) {}
),
'AdvertisementDoc' => array(
'keep' => array([maximum depth reached]),
'instance' => object(AdvertisementDoc) {}
)
),
'depth' => (int) 0
)
$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(
'Category' => array(),
'CategoryParamValue' => array(),
'State' => array(),
'Rieltor' => array(),
'Contractor' => array(),
'AdvertisementPicture' => array(),
'Location' => array(),
'Collation' => array(),
'Event' => array(),
'AdvertisementDoc' => array()
)
$name = 'AdvertisementPlatform'
$children = array()
$keys = array()
$depths = array(
(int) 0 => (int) 1,
(int) 1 => (int) 1,
(int) 2 => (int) 1,
(int) 3 => (int) 1,
(int) 4 => (int) 1,
(int) 5 => (int) 1,
(int) 6 => (int) 1,
(int) 7 => (int) 1,
(int) 8 => (int) 1,
(int) 9 => (int) 1
)
ContainableBehavior::containments() - CORE/Cake/Model/Behavior/ContainableBehavior.php, line 341
ContainableBehavior::beforeFind() - CORE/Cake/Model/Behavior/ContainableBehavior.php, line 123
ObjectCollection::trigger() - CORE/Cake/Utility/ObjectCollection.php, line 128
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Model::buildQuery() - CORE/Cake/Model/Model.php, line 3084
Model::find() - CORE/Cake/Model/Model.php, line 2998
CroogoAppModel::find() - ROOT/vendors/croogo/Croogo/Model/CroogoAppModel.php, line 81
DboSource::query() - CORE/Cake/Model/Datasource/DboSource.php, line 600
Model::__call() - CORE/Cake/Model/Model.php, line 827
Advertisement::findById() - APP/Plugin/Agency/Controller/RealtyController.php, line 368
RealtyController::view() - APP/Plugin/Agency/Controller/RealtyController.php, line 368
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193