list($config['schema'], $name) = explode('.', $name); |
|
} |
|
$table = new TableSchema($name); |
|
|
|
$this->_reflect('Column', $name, $config, $table); |
|
if (count($table->columns()) === 0) { |
|
throw new Exception(sprintf('Cannot describe %s. It has 0 columns.', $name)); |
|
} |
|
|
'Column' 'salons' [ 'driver' => 'Cake\Database\Driver\Mysql', 'persistent' => false, 'host' => 'autovevr.mysql.tools', 'username' => 'autovevr_afisha', 'password' => 'dp8fbseg', 'database' => 'autovevr_afisha', 'encoding' => 'utf8', 'timezone' => '', 'flags' => [], 'cacheMetadata' => true, 'log' => false, 'quoteIdentifiers' => false, 'url' => null, 'name' => 'default' ] object(Cake\Database\Schema\TableSchema) { [protected] _table => 'salons' [protected] _columns => [] [protected] _typeMap => [] [protected] _indexes => [] [protected] _constraints => [] [protected] _options => [] [protected] _temporary => false [protected] _columnKeys => [ 'type' => null, 'baseType' => null, 'length' => null, 'precision' => null, 'null' => null, 'default' => null, 'comment' => null ] [protected] _columnExtras => [ 'string' => [ 'fixed' => null, 'collate' => null ], 'text' => [ 'collate' => null ], 'integer' => [ 'unsigned' => null, 'autoIncrement' => null ], 'biginteger' => [ 'unsigned' => null, 'autoIncrement' => null ], 'decimal' => [ 'unsigned' => null ], 'float' => [ 'unsigned' => null ] ] [protected] _indexKeys => [ 'type' => null, 'columns' => [], 'length' => [], 'references' => [], 'update' => 'restrict', 'delete' => 'restrict' ] [protected] _validIndexTypes => [ (int) 0 => 'index', (int) 1 => 'fulltext' ] [protected] _validConstraintTypes => [ (int) 0 => 'primary', (int) 1 => 'unique', (int) 2 => 'foreign' ] [protected] _validForeignKeyActions => [ (int) 0 => 'cascade', (int) 1 => 'setNull', (int) 2 => 'setDefault', (int) 3 => 'noAction', (int) 4 => 'restrict' ] }
return $cached; |
|
} |
|
} |
|
|
|
$table = parent::describe($name, $options); |
|
|
|
if (!empty($cacheConfig)) { |
|
Cache::write($cacheKey, $table, $cacheConfig); |
|
} |
'salons' [ 'forceRefresh' => false ]
if ($this->_schema === null) { |
|
$this->_schema = $this->_initializeSchema( |
|
$this->getConnection() |
|
->getSchemaCollection() |
|
->describe($this->getTable()) |
|
); |
|
} |
|
|
|
return $this->_schema; |
'salons'
*/ |
|
public function getPrimaryKey() |
|
{ |
|
if ($this->_primaryKey === null) { |
|
$key = (array)$this->getSchema()->primaryKey(); |
|
if (count($key) === 1) { |
|
$key = $key[0]; |
|
} |
|
$this->_primaryKey = $key; |
No arguments
if (!$association) { |
|
continue; |
|
} |
|
$target = $association->getTarget(); |
|
$primary = (array)$target->getPrimaryKey(); |
|
if (empty($primary) || $typeMap->type($target->aliasField($primary[0])) === null) { |
|
$this->addDefaultTypes($target); |
|
} |
|
if (!empty($nested)) { |
No arguments
return $loader->contain(); |
|
} |
|
|
|
$result = $loader->contain($associations); |
|
$this->_addAssociationsToTypeMap($this->repository(), $this->getTypeMap(), $result); |
|
|
|
return $this; |
|
} |
|
|
object(App\Model\Table\UsersTable) { 'registryAlias' => 'Users', 'table' => 'users', 'alias' => 'Users', 'entityClass' => 'App\Model\Entity\User', 'associations' => [ (int) 0 => 'region', (int) 1 => 'autos', (int) 2 => 'autossold', (int) 3 => 'subscriptions', (int) 4 => 'autosnotactive', (int) 5 => 'autosarchive', (int) 6 => 'salons' ], 'behaviors' => [], 'defaultConnection' => 'default', 'connectionName' => 'default' } object(Cake\Database\TypeMap) { [protected] _defaults => [ 'Users__id' => 'integer', 'Users.id' => 'integer', 'id' => 'integer', 'Users__email' => 'string', 'Users.email' => 'string', 'email' => 'string', 'Users__name' => 'string', 'Users.name' => 'string', 'name' => 'string', 'Users__phone' => 'string', 'Users.phone' => 'string', 'phone' => 'string', 'Users__password' => 'string', 'Users.password' => 'string', 'password' => 'string', 'Users__org_name' => 'string', 'Users.org_name' => 'string', 'org_name' => 'string', 'Users__region_id' => 'integer', 'Users.region_id' => 'integer', 'region_id' => 'integer', 'Users__balance' => 'float', 'Users.balance' => 'float', 'balance' => 'float', 'Users__role' => 'string', 'Users.role' => 'string', 'role' => 'string', 'Users__parsed' => 'string', 'Users.parsed' => 'string', 'parsed' => 'string', 'Users__publications' => 'integer', 'Users.publications' => 'integer', 'publications' => 'integer', 'Users__tops' => 'integer', 'Users.tops' => 'integer', 'tops' => 'integer', 'Users__reset_password' => 'string', 'Users.reset_password' => 'string', 'reset_password' => 'string', 'Users__dispatch' => 'string', 'Users.dispatch' => 'string', 'dispatch' => 'string', 'Users__vk_id' => 'biginteger', 'Users.vk_id' => 'biginteger', 'vk_id' => 'biginteger', 'Users__fb_id' => 'biginteger', 'Users.fb_id' => 'biginteger', 'fb_id' => 'biginteger', 'Users__created' => 'integer', 'Users.created' => 'integer', 'created' => 'integer', 'Region__id' => 'integer', 'Region.id' => 'integer', 'Region__name' => 'string', 'Region.name' => 'string', 'Region__parent_id' => 'integer', 'Region.parent_id' => 'integer', 'parent_id' => 'integer' ] [protected] _types => [] } [ 'Region' => [], 'Salons' => [] ]
'Regions' => function ($q1) { |
|
return $q1->contain(['RegionsTitle']); |
|
}, |
|
'Users' => function ($q1) { |
|
return $q1->contain(['Region', 'Salons']); |
|
}, |
|
'AutoSpecifications' => function ($q1) { |
|
return $q1->contain(['AutoFuels', 'AutoGearboxes', 'AutoColors', 'AutoColorTypes', 'AutoDrives']); |
|
}, 'AutoImages' => function ($q1) { |
[ (int) 0 => 'Region', (int) 1 => 'Salons' ]
->find($finder, $opts) |
|
->eagerLoaded(true); |
|
|
|
if (!empty($options['queryBuilder'])) { |
|
$dummy = $options['queryBuilder']($dummy); |
|
if (!($dummy instanceof Query)) { |
|
throw new RuntimeException(sprintf( |
|
'Query builder for association "%s" did not return a query', |
|
$this->getName() |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SQL could not be generated for this query as it is incomplete.', 'params' => [], 'defaultTypes' => [ 'Users__id' => 'integer', 'Users.id' => 'integer', 'id' => 'integer', 'Users__email' => 'string', 'Users.email' => 'string', 'email' => 'string', 'Users__name' => 'string', 'Users.name' => 'string', 'name' => 'string', 'Users__phone' => 'string', 'Users.phone' => 'string', 'phone' => 'string', 'Users__password' => 'string', 'Users.password' => 'string', 'password' => 'string', 'Users__org_name' => 'string', 'Users.org_name' => 'string', 'org_name' => 'string', 'Users__region_id' => 'integer', 'Users.region_id' => 'integer', 'region_id' => 'integer', 'Users__balance' => 'float', 'Users.balance' => 'float', 'balance' => 'float', 'Users__role' => 'string', 'Users.role' => 'string', 'role' => 'string', 'Users__parsed' => 'string', 'Users.parsed' => 'string', 'parsed' => 'string', 'Users__publications' => 'integer', 'Users.publications' => 'integer', 'publications' => 'integer', 'Users__tops' => 'integer', 'Users.tops' => 'integer', 'tops' => 'integer', 'Users__reset_password' => 'string', 'Users.reset_password' => 'string', 'reset_password' => 'string', 'Users__dispatch' => 'string', 'Users.dispatch' => 'string', 'dispatch' => 'string', 'Users__vk_id' => 'biginteger', 'Users.vk_id' => 'biginteger', 'vk_id' => 'biginteger', 'Users__fb_id' => 'biginteger', 'Users.fb_id' => 'biginteger', 'fb_id' => 'biginteger', 'Users__created' => 'integer', 'Users.created' => 'integer', 'created' => 'integer', 'Region__id' => 'integer', 'Region.id' => 'integer', 'Region__name' => 'string', 'Region.name' => 'string', 'Region__parent_id' => 'integer', 'Region.parent_id' => 'integer', 'parent_id' => 'integer' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [ 'Region' => [], 'Salons' => [] ], 'matching' => [], 'extraOptions' => [], 'repository' => object(App\Model\Table\UsersTable) { 'registryAlias' => 'Users', 'table' => 'users', 'alias' => 'Users', 'entityClass' => 'App\Model\Entity\User', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } }
'aliasPath' => $loadable->aliasPath(), |
|
'propertyPath' => $loadable->propertyPath(), |
|
'includeFields' => $includeFields, |
|
]; |
|
$loadable->instance()->attachTo($query, $config); |
|
$processed[$alias] = true; |
|
} |
|
|
|
$newAttachable = $this->attachableAssociations($repository); |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SQL could not be generated for this query as it is incomplete.', 'params' => [], 'defaultTypes' => [ 'Autos__id' => 'integer', 'Autos.id' => 'integer', 'id' => 'integer', 'Autos__user_id' => 'integer', 'Autos.user_id' => 'integer', 'user_id' => 'integer', 'Autos__auto_type_id' => 'integer', 'Autos.auto_type_id' => 'integer', 'auto_type_id' => 'integer', 'Autos__auto_body_id' => 'integer', 'Autos.auto_body_id' => 'integer', 'auto_body_id' => 'integer', 'Autos__auto_mark_id' => 'integer', 'Autos.auto_mark_id' => 'integer', 'auto_mark_id' => 'integer', 'Autos__auto_model_id' => 'integer', 'Autos.auto_model_id' => 'integer', 'auto_model_id' => 'integer', 'Autos__modification' => 'string', 'Autos.modification' => 'string', 'modification' => 'string', 'Autos__state' => 'string', 'Autos.state' => 'string', 'state' => 'string', 'Autos__region_id' => 'integer', 'Autos.region_id' => 'integer', 'region_id' => 'integer', 'Autos__production' => 'integer', 'Autos.production' => 'integer', 'production' => 'integer', 'Autos__run' => 'integer', 'Autos.run' => 'integer', 'run' => 'integer', 'Autos__auction' => 'string', 'Autos.auction' => 'string', 'auction' => 'string', 'Autos__exchange' => 'string', 'Autos.exchange' => 'string', 'exchange' => 'string', 'Autos__bonded' => 'string', 'Autos.bonded' => 'string', 'bonded' => 'string', 'Autos__verify' => 'string', 'Autos.verify' => 'string', 'verify' => 'string', 'Autos__price' => 'integer', 'Autos.price' => 'integer', 'price' => 'integer', 'Autos__price_bonded' => 'float', 'Autos.price_bonded' => 'float', 'price_bonded' => 'float', 'Autos__count_phone' => 'integer', 'Autos.count_phone' => 'integer', 'count_phone' => 'integer', 'Autos__count_click' => 'integer', 'Autos.count_click' => 'integer', 'count_click' => 'integer', 'Autos__description' => 'text', 'Autos.description' => 'text', 'description' => 'text', 'Autos__publication_type' => 'string', 'Autos.publication_type' => 'string', 'publication_type' => 'string', 'Autos__urgently' => 'string', 'Autos.urgently' => 'string', 'urgently' => 'string', 'Autos__color' => 'string', 'Autos.color' => 'string', 'color' => 'string', 'Autos__source' => 'text', 'Autos.source' => 'text', 'source' => 'text', 'Autos__publication_end' => 'integer', 'Autos.publication_end' => 'integer', 'publication_end' => 'integer', 'Autos__sold' => 'string', 'Autos.sold' => 'string', 'sold' => 'string', 'Autos__active' => 'string', 'Autos.active' => 'string', 'active' => 'string', 'Autos__deleted' => 'string', 'Autos.deleted' => 'string', 'deleted' => 'string', 'Autos__created' => 'integer', 'Autos.created' => 'integer', 'created' => 'integer', 'Autos__modified' => 'integer', 'Autos.modified' => 'integer', 'modified' => 'integer', 'Marks__id' => 'integer', 'Marks.id' => 'integer', 'Marks__auto_type_id' => 'integer', 'Marks.auto_type_id' => 'integer', 'Marks__name' => 'string', 'Marks.name' => 'string', 'name' => 'string', 'Models__id' => 'integer', 'Models.id' => 'integer', 'Models__auto_mark_id' => 'integer', 'Models.auto_mark_id' => 'integer', 'Models__name' => 'string', 'Models.name' => 'string', 'Models__parent_id' => 'integer', 'Models.parent_id' => 'integer', 'parent_id' => 'integer', 'Types__id' => 'integer', 'Types.id' => 'integer', 'Types__name' => 'string', 'Types.name' => 'string', 'Phones__id' => 'integer', 'Phones.id' => 'integer', 'Phones__auto_id' => 'integer', 'Phones.auto_id' => 'integer', 'auto_id' => 'integer', 'Phones__phone' => 'string', 'Phones.phone' => 'string', 'phone' => 'string', 'Bodies__id' => 'integer', 'Bodies.id' => 'integer', 'Bodies__auto_type_id' => 'integer', 'Bodies.auto_type_id' => 'integer', 'Bodies__name' => 'string', 'Bodies.name' => 'string', 'Regions__id' => 'integer', 'Regions.id' => 'integer', 'Regions__name' => 'string', 'Regions.name' => 'string', 'Regions__parent_id' => 'integer', 'Regions.parent_id' => 'integer', 'Users__id' => 'integer', 'Users.id' => 'integer', 'Users__email' => 'string', 'Users.email' => 'string', 'email' => 'string', 'Users__name' => 'string', 'Users.name' => 'string', 'Users__phone' => 'string', 'Users.phone' => 'string', 'Users__password' => 'string', 'Users.password' => 'string', 'password' => 'string', 'Users__org_name' => 'string', 'Users.org_name' => 'string', 'org_name' => 'string', 'Users__region_id' => 'integer', 'Users.region_id' => 'integer', 'Users__balance' => 'float', 'Users.balance' => 'float', 'balance' => 'float', 'Users__role' => 'string', 'Users.role' => 'string', 'role' => 'string', 'Users__parsed' => 'string', 'Users.parsed' => 'string', 'parsed' => 'string', 'Users__publications' => 'integer', 'Users.publications' => 'integer', 'publications' => 'integer', 'Users__tops' => 'integer', 'Users.tops' => 'integer', 'tops' => 'integer', 'Users__reset_password' => 'string', 'Users.reset_password' => 'string', 'reset_password' => 'string', 'Users__dispatch' => 'string', 'Users.dispatch' => 'string', 'dispatch' => 'string', 'Users__vk_id' => 'biginteger', 'Users.vk_id' => 'biginteger', 'vk_id' => 'biginteger', 'Users__fb_id' => 'biginteger', 'Users.fb_id' => 'biginteger', 'fb_id' => 'biginteger', 'Users__created' => 'integer', 'Users.created' => 'integer', 'AutoSpecifications__id' => 'integer', 'AutoSpecifications.id' => 'integer', 'AutoSpecifications__auto_id' => 'integer', 'AutoSpecifications.auto_id' => 'integer', 'AutoSpecifications__auto_fuel_id' => 'integer', 'AutoSpecifications.auto_fuel_id' => 'integer', 'auto_fuel_id' => 'integer', 'AutoSpecifications__engine' => 'float', 'AutoSpecifications.engine' => 'float', 'engine' => 'float', 'AutoSpecifications__power' => 'integer', 'AutoSpecifications.power' => 'integer', 'power' => 'integer', 'AutoSpecifications__auto_gearbox_id' => 'integer', 'AutoSpecifications.auto_gearbox_id' => 'integer', 'auto_gearbox_id' => 'integer', 'AutoSpecifications__degrees' => 'integer', 'AutoSpecifications.degrees' => 'integer', 'degrees' => 'integer', 'AutoSpecifications__auto_drive_id' => 'integer', 'AutoSpecifications.auto_drive_id' => 'integer', 'auto_drive_id' => 'integer', 'AutoSpecifications__auto_color_id' => 'integer', 'AutoSpecifications.auto_color_id' => 'integer', 'auto_color_id' => 'integer', 'AutoSpecifications__auto_color_type_id' => 'integer', 'AutoSpecifications.auto_color_type_id' => 'integer', 'auto_color_type_id' => 'integer', 'AutoSpecifications__door' => 'integer', 'AutoSpecifications.door' => 'integer', 'door' => 'integer', 'AutoSpecifications__seats' => 'integer', 'AutoSpecifications.seats' => 'integer', 'seats' => 'integer', 'AutoSpecifications__eko' => 'integer', 'AutoSpecifications.eko' => 'integer', 'eko' => 'integer', 'AutoImages__id' => 'integer', 'AutoImages.id' => 'integer', 'AutoImages__img_original' => 'text', 'AutoImages.img_original' => 'text', 'img_original' => 'text', 'AutoImages__img_small' => 'text', 'AutoImages.img_small' => 'text', 'img_small' => 'text', 'AutoImages__img_edit' => 'text', 'AutoImages.img_edit' => 'text', 'img_edit' => 'text', 'AutoImages__user_id' => 'integer', 'AutoImages.user_id' => 'integer', 'AutoImages__auto_id' => 'integer', 'AutoImages.auto_id' => 'integer', 'AutoImages__tmp' => 'string', 'AutoImages.tmp' => 'string', 'tmp' => 'string', 'AutoImages__sort' => 'integer', 'AutoImages.sort' => 'integer', 'sort' => 'integer', 'AutosAutoOptions__id' => 'integer', 'AutosAutoOptions.id' => 'integer', 'AutosAutoOptions__auto_id' => 'integer', 'AutosAutoOptions.auto_id' => 'integer', 'AutosAutoOptions__auto_option_id' => 'integer', 'AutosAutoOptions.auto_option_id' => 'integer', 'auto_option_id' => 'integer', 'Types_name_translation__id' => 'integer', 'Types_name_translation.id' => 'integer', 'Types_name_translation__locale' => 'string', 'Types_name_translation.locale' => 'string', 'locale' => 'string', 'Types_name_translation__model' => 'string', 'Types_name_translation.model' => 'string', 'model' => 'string', 'Types_name_translation__foreign_key' => 'integer', 'Types_name_translation.foreign_key' => 'integer', 'foreign_key' => 'integer', 'Types_name_translation__field' => 'string', 'Types_name_translation.field' => 'string', 'field' => 'string', 'Types_name_translation__content' => 'text', 'Types_name_translation.content' => 'text', 'content' => 'text', 'RegionsTitle__id' => 'integer', 'RegionsTitle.id' => 'integer', 'RegionsTitle__name' => 'string', 'RegionsTitle.name' => 'string', 'RegionsTitle__parent_id' => 'integer', 'RegionsTitle.parent_id' => 'integer' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 2, 'mapReducers' => (int) 0, 'contain' => [ 'Marks' => [], 'Models' => [], 'Types' => [ 'Types_name_translation' => [ [maximum depth reached] ] ], 'Phones' => [], 'Bodies' => [], 'Regions' => [ 'queryBuilder' => object(Closure) {}, 'RegionsTitle' => [[maximum depth reached]] ], 'Users' => [ 'queryBuilder' => object(Closure) {} ], 'AutoSpecifications' => [ 'queryBuilder' => object(Closure) {} ], 'AutoImages' => [ 'queryBuilder' => object(Closure) {} ], 'AutosAutoOptions' => [ 'queryBuilder' => object(Closure) {} ] ], 'matching' => [], 'extraOptions' => [], 'repository' => object(App\Model\Table\AutosTable) { 'registryAlias' => 'Autos', 'table' => 'autos', 'alias' => 'Autos', 'entityClass' => 'App\Model\Entity\Auto', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } } [ 'queryBuilder' => object(Closure) { }, 'aliasPath' => 'Users', 'propertyPath' => 'user', 'includeFields' => true ]
if (empty($this->_parts['from'])) { |
|
$this->from([$this->_repository->alias() => $this->_repository->table()]); |
|
} |
|
$this->_addDefaultFields(); |
|
$this->getEagerLoader()->attachAssociations($this, $this->_repository, !$this->_hasFields); |
|
$this->_addDefaultSelectTypes(); |
|
} |
|
|
|
/** |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SQL could not be generated for this query as it is incomplete.', 'params' => [], 'defaultTypes' => [ 'Autos__id' => 'integer', 'Autos.id' => 'integer', 'id' => 'integer', 'Autos__user_id' => 'integer', 'Autos.user_id' => 'integer', 'user_id' => 'integer', 'Autos__auto_type_id' => 'integer', 'Autos.auto_type_id' => 'integer', 'auto_type_id' => 'integer', 'Autos__auto_body_id' => 'integer', 'Autos.auto_body_id' => 'integer', 'auto_body_id' => 'integer', 'Autos__auto_mark_id' => 'integer', 'Autos.auto_mark_id' => 'integer', 'auto_mark_id' => 'integer', 'Autos__auto_model_id' => 'integer', 'Autos.auto_model_id' => 'integer', 'auto_model_id' => 'integer', 'Autos__modification' => 'string', 'Autos.modification' => 'string', 'modification' => 'string', 'Autos__state' => 'string', 'Autos.state' => 'string', 'state' => 'string', 'Autos__region_id' => 'integer', 'Autos.region_id' => 'integer', 'region_id' => 'integer', 'Autos__production' => 'integer', 'Autos.production' => 'integer', 'production' => 'integer', 'Autos__run' => 'integer', 'Autos.run' => 'integer', 'run' => 'integer', 'Autos__auction' => 'string', 'Autos.auction' => 'string', 'auction' => 'string', 'Autos__exchange' => 'string', 'Autos.exchange' => 'string', 'exchange' => 'string', 'Autos__bonded' => 'string', 'Autos.bonded' => 'string', 'bonded' => 'string', 'Autos__verify' => 'string', 'Autos.verify' => 'string', 'verify' => 'string', 'Autos__price' => 'integer', 'Autos.price' => 'integer', 'price' => 'integer', 'Autos__price_bonded' => 'float', 'Autos.price_bonded' => 'float', 'price_bonded' => 'float', 'Autos__count_phone' => 'integer', 'Autos.count_phone' => 'integer', 'count_phone' => 'integer', 'Autos__count_click' => 'integer', 'Autos.count_click' => 'integer', 'count_click' => 'integer', 'Autos__description' => 'text', 'Autos.description' => 'text', 'description' => 'text', 'Autos__publication_type' => 'string', 'Autos.publication_type' => 'string', 'publication_type' => 'string', 'Autos__urgently' => 'string', 'Autos.urgently' => 'string', 'urgently' => 'string', 'Autos__color' => 'string', 'Autos.color' => 'string', 'color' => 'string', 'Autos__source' => 'text', 'Autos.source' => 'text', 'source' => 'text', 'Autos__publication_end' => 'integer', 'Autos.publication_end' => 'integer', 'publication_end' => 'integer', 'Autos__sold' => 'string', 'Autos.sold' => 'string', 'sold' => 'string', 'Autos__active' => 'string', 'Autos.active' => 'string', 'active' => 'string', 'Autos__deleted' => 'string', 'Autos.deleted' => 'string', 'deleted' => 'string', 'Autos__created' => 'integer', 'Autos.created' => 'integer', 'created' => 'integer', 'Autos__modified' => 'integer', 'Autos.modified' => 'integer', 'modified' => 'integer', 'Marks__id' => 'integer', 'Marks.id' => 'integer', 'Marks__auto_type_id' => 'integer', 'Marks.auto_type_id' => 'integer', 'Marks__name' => 'string', 'Marks.name' => 'string', 'name' => 'string', 'Models__id' => 'integer', 'Models.id' => 'integer', 'Models__auto_mark_id' => 'integer', 'Models.auto_mark_id' => 'integer', 'Models__name' => 'string', 'Models.name' => 'string', 'Models__parent_id' => 'integer', 'Models.parent_id' => 'integer', 'parent_id' => 'integer', 'Types__id' => 'integer', 'Types.id' => 'integer', 'Types__name' => 'string', 'Types.name' => 'string', 'Phones__id' => 'integer', 'Phones.id' => 'integer', 'Phones__auto_id' => 'integer', 'Phones.auto_id' => 'integer', 'auto_id' => 'integer', 'Phones__phone' => 'string', 'Phones.phone' => 'string', 'phone' => 'string', 'Bodies__id' => 'integer', 'Bodies.id' => 'integer', 'Bodies__auto_type_id' => 'integer', 'Bodies.auto_type_id' => 'integer', 'Bodies__name' => 'string', 'Bodies.name' => 'string', 'Regions__id' => 'integer', 'Regions.id' => 'integer', 'Regions__name' => 'string', 'Regions.name' => 'string', 'Regions__parent_id' => 'integer', 'Regions.parent_id' => 'integer', 'Users__id' => 'integer', 'Users.id' => 'integer', 'Users__email' => 'string', 'Users.email' => 'string', 'email' => 'string', 'Users__name' => 'string', 'Users.name' => 'string', 'Users__phone' => 'string', 'Users.phone' => 'string', 'Users__password' => 'string', 'Users.password' => 'string', 'password' => 'string', 'Users__org_name' => 'string', 'Users.org_name' => 'string', 'org_name' => 'string', 'Users__region_id' => 'integer', 'Users.region_id' => 'integer', 'Users__balance' => 'float', 'Users.balance' => 'float', 'balance' => 'float', 'Users__role' => 'string', 'Users.role' => 'string', 'role' => 'string', 'Users__parsed' => 'string', 'Users.parsed' => 'string', 'parsed' => 'string', 'Users__publications' => 'integer', 'Users.publications' => 'integer', 'publications' => 'integer', 'Users__tops' => 'integer', 'Users.tops' => 'integer', 'tops' => 'integer', 'Users__reset_password' => 'string', 'Users.reset_password' => 'string', 'reset_password' => 'string', 'Users__dispatch' => 'string', 'Users.dispatch' => 'string', 'dispatch' => 'string', 'Users__vk_id' => 'biginteger', 'Users.vk_id' => 'biginteger', 'vk_id' => 'biginteger', 'Users__fb_id' => 'biginteger', 'Users.fb_id' => 'biginteger', 'fb_id' => 'biginteger', 'Users__created' => 'integer', 'Users.created' => 'integer', 'AutoSpecifications__id' => 'integer', 'AutoSpecifications.id' => 'integer', 'AutoSpecifications__auto_id' => 'integer', 'AutoSpecifications.auto_id' => 'integer', 'AutoSpecifications__auto_fuel_id' => 'integer', 'AutoSpecifications.auto_fuel_id' => 'integer', 'auto_fuel_id' => 'integer', 'AutoSpecifications__engine' => 'float', 'AutoSpecifications.engine' => 'float', 'engine' => 'float', 'AutoSpecifications__power' => 'integer', 'AutoSpecifications.power' => 'integer', 'power' => 'integer', 'AutoSpecifications__auto_gearbox_id' => 'integer', 'AutoSpecifications.auto_gearbox_id' => 'integer', 'auto_gearbox_id' => 'integer', 'AutoSpecifications__degrees' => 'integer', 'AutoSpecifications.degrees' => 'integer', 'degrees' => 'integer', 'AutoSpecifications__auto_drive_id' => 'integer', 'AutoSpecifications.auto_drive_id' => 'integer', 'auto_drive_id' => 'integer', 'AutoSpecifications__auto_color_id' => 'integer', 'AutoSpecifications.auto_color_id' => 'integer', 'auto_color_id' => 'integer', 'AutoSpecifications__auto_color_type_id' => 'integer', 'AutoSpecifications.auto_color_type_id' => 'integer', 'auto_color_type_id' => 'integer', 'AutoSpecifications__door' => 'integer', 'AutoSpecifications.door' => 'integer', 'door' => 'integer', 'AutoSpecifications__seats' => 'integer', 'AutoSpecifications.seats' => 'integer', 'seats' => 'integer', 'AutoSpecifications__eko' => 'integer', 'AutoSpecifications.eko' => 'integer', 'eko' => 'integer', 'AutoImages__id' => 'integer', 'AutoImages.id' => 'integer', 'AutoImages__img_original' => 'text', 'AutoImages.img_original' => 'text', 'img_original' => 'text', 'AutoImages__img_small' => 'text', 'AutoImages.img_small' => 'text', 'img_small' => 'text', 'AutoImages__img_edit' => 'text', 'AutoImages.img_edit' => 'text', 'img_edit' => 'text', 'AutoImages__user_id' => 'integer', 'AutoImages.user_id' => 'integer', 'AutoImages__auto_id' => 'integer', 'AutoImages.auto_id' => 'integer', 'AutoImages__tmp' => 'string', 'AutoImages.tmp' => 'string', 'tmp' => 'string', 'AutoImages__sort' => 'integer', 'AutoImages.sort' => 'integer', 'sort' => 'integer', 'AutosAutoOptions__id' => 'integer', 'AutosAutoOptions.id' => 'integer', 'AutosAutoOptions__auto_id' => 'integer', 'AutosAutoOptions.auto_id' => 'integer', 'AutosAutoOptions__auto_option_id' => 'integer', 'AutosAutoOptions.auto_option_id' => 'integer', 'auto_option_id' => 'integer', 'Types_name_translation__id' => 'integer', 'Types_name_translation.id' => 'integer', 'Types_name_translation__locale' => 'string', 'Types_name_translation.locale' => 'string', 'locale' => 'string', 'Types_name_translation__model' => 'string', 'Types_name_translation.model' => 'string', 'model' => 'string', 'Types_name_translation__foreign_key' => 'integer', 'Types_name_translation.foreign_key' => 'integer', 'foreign_key' => 'integer', 'Types_name_translation__field' => 'string', 'Types_name_translation.field' => 'string', 'field' => 'string', 'Types_name_translation__content' => 'text', 'Types_name_translation.content' => 'text', 'content' => 'text', 'RegionsTitle__id' => 'integer', 'RegionsTitle.id' => 'integer', 'RegionsTitle__name' => 'string', 'RegionsTitle.name' => 'string', 'RegionsTitle__parent_id' => 'integer', 'RegionsTitle.parent_id' => 'integer' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 3, 'mapReducers' => (int) 0, 'contain' => [ 'Marks' => [], 'Models' => [], 'Types' => [ 'Types_name_translation' => [ [maximum depth reached] ] ], 'Phones' => [], 'Bodies' => [], 'Regions' => [ 'queryBuilder' => object(Closure) {}, 'RegionsTitle' => [[maximum depth reached]] ], 'Users' => [ 'queryBuilder' => object(Closure) {} ], 'AutoSpecifications' => [ 'queryBuilder' => object(Closure) {} ], 'AutoImages' => [ 'queryBuilder' => object(Closure) {} ], 'AutosAutoOptions' => [ 'queryBuilder' => object(Closure) {} ] ], 'matching' => [], 'extraOptions' => [], 'repository' => object(App\Model\Table\AutosTable) { 'registryAlias' => 'Autos', 'table' => 'autos', 'alias' => 'Autos', 'entityClass' => 'App\Model\Entity\Auto', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } } object(App\Model\Table\AutosTable) { 'registryAlias' => 'Autos', 'table' => 'autos', 'alias' => 'Autos', 'entityClass' => 'App\Model\Entity\Auto', 'associations' => [ (int) 0 => 'autospecifications', (int) 1 => 'users', (int) 2 => 'autoimages', (int) 3 => 'autosautooptions', (int) 4 => 'phones', (int) 5 => 'bodies', (int) 6 => 'marks', (int) 7 => 'types', (int) 8 => 'regions', (int) 9 => 'models', (int) 10 => 'automodelsplus' ], 'behaviors' => [], 'defaultConnection' => 'default', 'connectionName' => 'default' } true
public function sql(ValueBinder $binder = null) |
|
{ |
|
$this->triggerBeforeFind(); |
|
|
|
$this->_transformQuery(); |
|
$sql = parent::sql($binder); |
|
|
|
return $sql; |
|
} |
No arguments
public function prepare($query) |
|
{ |
|
$this->connect(); |
|
$isObject = $query instanceof Query; |
|
$statement = $this->_connection->prepare($isObject ? $query->sql() : $query); |
|
$result = new MysqlStatement($statement, $this); |
|
if ($isObject && $query->isBufferedResultsEnabled() === false) { |
|
$result->bufferResults(false); |
|
} |
No arguments
* @return \Cake\Database\StatementInterface |
|
*/ |
|
public function prepare($sql) |
|
{ |
|
$statement = $this->_driver->prepare($sql); |
|
|
|
if ($this->_logQueries) { |
|
$statement = $this->_newLogger($statement); |
|
} |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SQL could not be generated for this query as it is incomplete.', 'params' => [], 'defaultTypes' => [ 'Autos__id' => 'integer', 'Autos.id' => 'integer', 'id' => 'integer', 'Autos__user_id' => 'integer', 'Autos.user_id' => 'integer', 'user_id' => 'integer', 'Autos__auto_type_id' => 'integer', 'Autos.auto_type_id' => 'integer', 'auto_type_id' => 'integer', 'Autos__auto_body_id' => 'integer', 'Autos.auto_body_id' => 'integer', 'auto_body_id' => 'integer', 'Autos__auto_mark_id' => 'integer', 'Autos.auto_mark_id' => 'integer', 'auto_mark_id' => 'integer', 'Autos__auto_model_id' => 'integer', 'Autos.auto_model_id' => 'integer', 'auto_model_id' => 'integer', 'Autos__modification' => 'string', 'Autos.modification' => 'string', 'modification' => 'string', 'Autos__state' => 'string', 'Autos.state' => 'string', 'state' => 'string', 'Autos__region_id' => 'integer', 'Autos.region_id' => 'integer', 'region_id' => 'integer', 'Autos__production' => 'integer', 'Autos.production' => 'integer', 'production' => 'integer', 'Autos__run' => 'integer', 'Autos.run' => 'integer', 'run' => 'integer', 'Autos__auction' => 'string', 'Autos.auction' => 'string', 'auction' => 'string', 'Autos__exchange' => 'string', 'Autos.exchange' => 'string', 'exchange' => 'string', 'Autos__bonded' => 'string', 'Autos.bonded' => 'string', 'bonded' => 'string', 'Autos__verify' => 'string', 'Autos.verify' => 'string', 'verify' => 'string', 'Autos__price' => 'integer', 'Autos.price' => 'integer', 'price' => 'integer', 'Autos__price_bonded' => 'float', 'Autos.price_bonded' => 'float', 'price_bonded' => 'float', 'Autos__count_phone' => 'integer', 'Autos.count_phone' => 'integer', 'count_phone' => 'integer', 'Autos__count_click' => 'integer', 'Autos.count_click' => 'integer', 'count_click' => 'integer', 'Autos__description' => 'text', 'Autos.description' => 'text', 'description' => 'text', 'Autos__publication_type' => 'string', 'Autos.publication_type' => 'string', 'publication_type' => 'string', 'Autos__urgently' => 'string', 'Autos.urgently' => 'string', 'urgently' => 'string', 'Autos__color' => 'string', 'Autos.color' => 'string', 'color' => 'string', 'Autos__source' => 'text', 'Autos.source' => 'text', 'source' => 'text', 'Autos__publication_end' => 'integer', 'Autos.publication_end' => 'integer', 'publication_end' => 'integer', 'Autos__sold' => 'string', 'Autos.sold' => 'string', 'sold' => 'string', 'Autos__active' => 'string', 'Autos.active' => 'string', 'active' => 'string', 'Autos__deleted' => 'string', 'Autos.deleted' => 'string', 'deleted' => 'string', 'Autos__created' => 'integer', 'Autos.created' => 'integer', 'created' => 'integer', 'Autos__modified' => 'integer', 'Autos.modified' => 'integer', 'modified' => 'integer', 'Marks__id' => 'integer', 'Marks.id' => 'integer', 'Marks__auto_type_id' => 'integer', 'Marks.auto_type_id' => 'integer', 'Marks__name' => 'string', 'Marks.name' => 'string', 'name' => 'string', 'Models__id' => 'integer', 'Models.id' => 'integer', 'Models__auto_mark_id' => 'integer', 'Models.auto_mark_id' => 'integer', 'Models__name' => 'string', 'Models.name' => 'string', 'Models__parent_id' => 'integer', 'Models.parent_id' => 'integer', 'parent_id' => 'integer', 'Types__id' => 'integer', 'Types.id' => 'integer', 'Types__name' => 'string', 'Types.name' => 'string', 'Phones__id' => 'integer', 'Phones.id' => 'integer', 'Phones__auto_id' => 'integer', 'Phones.auto_id' => 'integer', 'auto_id' => 'integer', 'Phones__phone' => 'string', 'Phones.phone' => 'string', 'phone' => 'string', 'Bodies__id' => 'integer', 'Bodies.id' => 'integer', 'Bodies__auto_type_id' => 'integer', 'Bodies.auto_type_id' => 'integer', 'Bodies__name' => 'string', 'Bodies.name' => 'string', 'Regions__id' => 'integer', 'Regions.id' => 'integer', 'Regions__name' => 'string', 'Regions.name' => 'string', 'Regions__parent_id' => 'integer', 'Regions.parent_id' => 'integer', 'Users__id' => 'integer', 'Users.id' => 'integer', 'Users__email' => 'string', 'Users.email' => 'string', 'email' => 'string', 'Users__name' => 'string', 'Users.name' => 'string', 'Users__phone' => 'string', 'Users.phone' => 'string', 'Users__password' => 'string', 'Users.password' => 'string', 'password' => 'string', 'Users__org_name' => 'string', 'Users.org_name' => 'string', 'org_name' => 'string', 'Users__region_id' => 'integer', 'Users.region_id' => 'integer', 'Users__balance' => 'float', 'Users.balance' => 'float', 'balance' => 'float', 'Users__role' => 'string', 'Users.role' => 'string', 'role' => 'string', 'Users__parsed' => 'string', 'Users.parsed' => 'string', 'parsed' => 'string', 'Users__publications' => 'integer', 'Users.publications' => 'integer', 'publications' => 'integer', 'Users__tops' => 'integer', 'Users.tops' => 'integer', 'tops' => 'integer', 'Users__reset_password' => 'string', 'Users.reset_password' => 'string', 'reset_password' => 'string', 'Users__dispatch' => 'string', 'Users.dispatch' => 'string', 'dispatch' => 'string', 'Users__vk_id' => 'biginteger', 'Users.vk_id' => 'biginteger', 'vk_id' => 'biginteger', 'Users__fb_id' => 'biginteger', 'Users.fb_id' => 'biginteger', 'fb_id' => 'biginteger', 'Users__created' => 'integer', 'Users.created' => 'integer', 'AutoSpecifications__id' => 'integer', 'AutoSpecifications.id' => 'integer', 'AutoSpecifications__auto_id' => 'integer', 'AutoSpecifications.auto_id' => 'integer', 'AutoSpecifications__auto_fuel_id' => 'integer', 'AutoSpecifications.auto_fuel_id' => 'integer', 'auto_fuel_id' => 'integer', 'AutoSpecifications__engine' => 'float', 'AutoSpecifications.engine' => 'float', 'engine' => 'float', 'AutoSpecifications__power' => 'integer', 'AutoSpecifications.power' => 'integer', 'power' => 'integer', 'AutoSpecifications__auto_gearbox_id' => 'integer', 'AutoSpecifications.auto_gearbox_id' => 'integer', 'auto_gearbox_id' => 'integer', 'AutoSpecifications__degrees' => 'integer', 'AutoSpecifications.degrees' => 'integer', 'degrees' => 'integer', 'AutoSpecifications__auto_drive_id' => 'integer', 'AutoSpecifications.auto_drive_id' => 'integer', 'auto_drive_id' => 'integer', 'AutoSpecifications__auto_color_id' => 'integer', 'AutoSpecifications.auto_color_id' => 'integer', 'auto_color_id' => 'integer', 'AutoSpecifications__auto_color_type_id' => 'integer', 'AutoSpecifications.auto_color_type_id' => 'integer', 'auto_color_type_id' => 'integer', 'AutoSpecifications__door' => 'integer', 'AutoSpecifications.door' => 'integer', 'door' => 'integer', 'AutoSpecifications__seats' => 'integer', 'AutoSpecifications.seats' => 'integer', 'seats' => 'integer', 'AutoSpecifications__eko' => 'integer', 'AutoSpecifications.eko' => 'integer', 'eko' => 'integer', 'AutoImages__id' => 'integer', 'AutoImages.id' => 'integer', 'AutoImages__img_original' => 'text', 'AutoImages.img_original' => 'text', 'img_original' => 'text', 'AutoImages__img_small' => 'text', 'AutoImages.img_small' => 'text', 'img_small' => 'text', 'AutoImages__img_edit' => 'text', 'AutoImages.img_edit' => 'text', 'img_edit' => 'text', 'AutoImages__user_id' => 'integer', 'AutoImages.user_id' => 'integer', 'AutoImages__auto_id' => 'integer', 'AutoImages.auto_id' => 'integer', 'AutoImages__tmp' => 'string', 'AutoImages.tmp' => 'string', 'tmp' => 'string', 'AutoImages__sort' => 'integer', 'AutoImages.sort' => 'integer', 'sort' => 'integer', 'AutosAutoOptions__id' => 'integer', 'AutosAutoOptions.id' => 'integer', 'AutosAutoOptions__auto_id' => 'integer', 'AutosAutoOptions.auto_id' => 'integer', 'AutosAutoOptions__auto_option_id' => 'integer', 'AutosAutoOptions.auto_option_id' => 'integer', 'auto_option_id' => 'integer', 'Types_name_translation__id' => 'integer', 'Types_name_translation.id' => 'integer', 'Types_name_translation__locale' => 'string', 'Types_name_translation.locale' => 'string', 'locale' => 'string', 'Types_name_translation__model' => 'string', 'Types_name_translation.model' => 'string', 'model' => 'string', 'Types_name_translation__foreign_key' => 'integer', 'Types_name_translation.foreign_key' => 'integer', 'foreign_key' => 'integer', 'Types_name_translation__field' => 'string', 'Types_name_translation.field' => 'string', 'field' => 'string', 'Types_name_translation__content' => 'text', 'Types_name_translation.content' => 'text', 'content' => 'text', 'RegionsTitle__id' => 'integer', 'RegionsTitle.id' => 'integer', 'RegionsTitle__name' => 'string', 'RegionsTitle.name' => 'string', 'RegionsTitle__parent_id' => 'integer', 'RegionsTitle.parent_id' => 'integer' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 4, 'mapReducers' => (int) 0, 'contain' => [ 'Marks' => [], 'Models' => [], 'Types' => [ 'Types_name_translation' => [ [maximum depth reached] ] ], 'Phones' => [], 'Bodies' => [], 'Regions' => [ 'queryBuilder' => object(Closure) {}, 'RegionsTitle' => [[maximum depth reached]] ], 'Users' => [ 'queryBuilder' => object(Closure) {} ], 'AutoSpecifications' => [ 'queryBuilder' => object(Closure) {} ], 'AutoImages' => [ 'queryBuilder' => object(Closure) {} ], 'AutosAutoOptions' => [ 'queryBuilder' => object(Closure) {} ] ], 'matching' => [], 'extraOptions' => [], 'repository' => object(App\Model\Table\AutosTable) { 'registryAlias' => 'Autos', 'table' => 'autos', 'alias' => 'Autos', 'entityClass' => 'App\Model\Entity\Auto', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } }
* @return \Cake\Database\StatementInterface executed statement |
|
*/ |
|
public function run(Query $query) |
|
{ |
|
$statement = $this->prepare($query); |
|
$query->valueBinder()->attachTo($statement); |
|
$statement->execute(); |
|
|
|
return $statement; |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SQL could not be generated for this query as it is incomplete.', 'params' => [], 'defaultTypes' => [ 'Autos__id' => 'integer', 'Autos.id' => 'integer', 'id' => 'integer', 'Autos__user_id' => 'integer', 'Autos.user_id' => 'integer', 'user_id' => 'integer', 'Autos__auto_type_id' => 'integer', 'Autos.auto_type_id' => 'integer', 'auto_type_id' => 'integer', 'Autos__auto_body_id' => 'integer', 'Autos.auto_body_id' => 'integer', 'auto_body_id' => 'integer', 'Autos__auto_mark_id' => 'integer', 'Autos.auto_mark_id' => 'integer', 'auto_mark_id' => 'integer', 'Autos__auto_model_id' => 'integer', 'Autos.auto_model_id' => 'integer', 'auto_model_id' => 'integer', 'Autos__modification' => 'string', 'Autos.modification' => 'string', 'modification' => 'string', 'Autos__state' => 'string', 'Autos.state' => 'string', 'state' => 'string', 'Autos__region_id' => 'integer', 'Autos.region_id' => 'integer', 'region_id' => 'integer', 'Autos__production' => 'integer', 'Autos.production' => 'integer', 'production' => 'integer', 'Autos__run' => 'integer', 'Autos.run' => 'integer', 'run' => 'integer', 'Autos__auction' => 'string', 'Autos.auction' => 'string', 'auction' => 'string', 'Autos__exchange' => 'string', 'Autos.exchange' => 'string', 'exchange' => 'string', 'Autos__bonded' => 'string', 'Autos.bonded' => 'string', 'bonded' => 'string', 'Autos__verify' => 'string', 'Autos.verify' => 'string', 'verify' => 'string', 'Autos__price' => 'integer', 'Autos.price' => 'integer', 'price' => 'integer', 'Autos__price_bonded' => 'float', 'Autos.price_bonded' => 'float', 'price_bonded' => 'float', 'Autos__count_phone' => 'integer', 'Autos.count_phone' => 'integer', 'count_phone' => 'integer', 'Autos__count_click' => 'integer', 'Autos.count_click' => 'integer', 'count_click' => 'integer', 'Autos__description' => 'text', 'Autos.description' => 'text', 'description' => 'text', 'Autos__publication_type' => 'string', 'Autos.publication_type' => 'string', 'publication_type' => 'string', 'Autos__urgently' => 'string', 'Autos.urgently' => 'string', 'urgently' => 'string', 'Autos__color' => 'string', 'Autos.color' => 'string', 'color' => 'string', 'Autos__source' => 'text', 'Autos.source' => 'text', 'source' => 'text', 'Autos__publication_end' => 'integer', 'Autos.publication_end' => 'integer', 'publication_end' => 'integer', 'Autos__sold' => 'string', 'Autos.sold' => 'string', 'sold' => 'string', 'Autos__active' => 'string', 'Autos.active' => 'string', 'active' => 'string', 'Autos__deleted' => 'string', 'Autos.deleted' => 'string', 'deleted' => 'string', 'Autos__created' => 'integer', 'Autos.created' => 'integer', 'created' => 'integer', 'Autos__modified' => 'integer', 'Autos.modified' => 'integer', 'modified' => 'integer', 'Marks__id' => 'integer', 'Marks.id' => 'integer', 'Marks__auto_type_id' => 'integer', 'Marks.auto_type_id' => 'integer', 'Marks__name' => 'string', 'Marks.name' => 'string', 'name' => 'string', 'Models__id' => 'integer', 'Models.id' => 'integer', 'Models__auto_mark_id' => 'integer', 'Models.auto_mark_id' => 'integer', 'Models__name' => 'string', 'Models.name' => 'string', 'Models__parent_id' => 'integer', 'Models.parent_id' => 'integer', 'parent_id' => 'integer', 'Types__id' => 'integer', 'Types.id' => 'integer', 'Types__name' => 'string', 'Types.name' => 'string', 'Phones__id' => 'integer', 'Phones.id' => 'integer', 'Phones__auto_id' => 'integer', 'Phones.auto_id' => 'integer', 'auto_id' => 'integer', 'Phones__phone' => 'string', 'Phones.phone' => 'string', 'phone' => 'string', 'Bodies__id' => 'integer', 'Bodies.id' => 'integer', 'Bodies__auto_type_id' => 'integer', 'Bodies.auto_type_id' => 'integer', 'Bodies__name' => 'string', 'Bodies.name' => 'string', 'Regions__id' => 'integer', 'Regions.id' => 'integer', 'Regions__name' => 'string', 'Regions.name' => 'string', 'Regions__parent_id' => 'integer', 'Regions.parent_id' => 'integer', 'Users__id' => 'integer', 'Users.id' => 'integer', 'Users__email' => 'string', 'Users.email' => 'string', 'email' => 'string', 'Users__name' => 'string', 'Users.name' => 'string', 'Users__phone' => 'string', 'Users.phone' => 'string', 'Users__password' => 'string', 'Users.password' => 'string', 'password' => 'string', 'Users__org_name' => 'string', 'Users.org_name' => 'string', 'org_name' => 'string', 'Users__region_id' => 'integer', 'Users.region_id' => 'integer', 'Users__balance' => 'float', 'Users.balance' => 'float', 'balance' => 'float', 'Users__role' => 'string', 'Users.role' => 'string', 'role' => 'string', 'Users__parsed' => 'string', 'Users.parsed' => 'string', 'parsed' => 'string', 'Users__publications' => 'integer', 'Users.publications' => 'integer', 'publications' => 'integer', 'Users__tops' => 'integer', 'Users.tops' => 'integer', 'tops' => 'integer', 'Users__reset_password' => 'string', 'Users.reset_password' => 'string', 'reset_password' => 'string', 'Users__dispatch' => 'string', 'Users.dispatch' => 'string', 'dispatch' => 'string', 'Users__vk_id' => 'biginteger', 'Users.vk_id' => 'biginteger', 'vk_id' => 'biginteger', 'Users__fb_id' => 'biginteger', 'Users.fb_id' => 'biginteger', 'fb_id' => 'biginteger', 'Users__created' => 'integer', 'Users.created' => 'integer', 'AutoSpecifications__id' => 'integer', 'AutoSpecifications.id' => 'integer', 'AutoSpecifications__auto_id' => 'integer', 'AutoSpecifications.auto_id' => 'integer', 'AutoSpecifications__auto_fuel_id' => 'integer', 'AutoSpecifications.auto_fuel_id' => 'integer', 'auto_fuel_id' => 'integer', 'AutoSpecifications__engine' => 'float', 'AutoSpecifications.engine' => 'float', 'engine' => 'float', 'AutoSpecifications__power' => 'integer', 'AutoSpecifications.power' => 'integer', 'power' => 'integer', 'AutoSpecifications__auto_gearbox_id' => 'integer', 'AutoSpecifications.auto_gearbox_id' => 'integer', 'auto_gearbox_id' => 'integer', 'AutoSpecifications__degrees' => 'integer', 'AutoSpecifications.degrees' => 'integer', 'degrees' => 'integer', 'AutoSpecifications__auto_drive_id' => 'integer', 'AutoSpecifications.auto_drive_id' => 'integer', 'auto_drive_id' => 'integer', 'AutoSpecifications__auto_color_id' => 'integer', 'AutoSpecifications.auto_color_id' => 'integer', 'auto_color_id' => 'integer', 'AutoSpecifications__auto_color_type_id' => 'integer', 'AutoSpecifications.auto_color_type_id' => 'integer', 'auto_color_type_id' => 'integer', 'AutoSpecifications__door' => 'integer', 'AutoSpecifications.door' => 'integer', 'door' => 'integer', 'AutoSpecifications__seats' => 'integer', 'AutoSpecifications.seats' => 'integer', 'seats' => 'integer', 'AutoSpecifications__eko' => 'integer', 'AutoSpecifications.eko' => 'integer', 'eko' => 'integer', 'AutoImages__id' => 'integer', 'AutoImages.id' => 'integer', 'AutoImages__img_original' => 'text', 'AutoImages.img_original' => 'text', 'img_original' => 'text', 'AutoImages__img_small' => 'text', 'AutoImages.img_small' => 'text', 'img_small' => 'text', 'AutoImages__img_edit' => 'text', 'AutoImages.img_edit' => 'text', 'img_edit' => 'text', 'AutoImages__user_id' => 'integer', 'AutoImages.user_id' => 'integer', 'AutoImages__auto_id' => 'integer', 'AutoImages.auto_id' => 'integer', 'AutoImages__tmp' => 'string', 'AutoImages.tmp' => 'string', 'tmp' => 'string', 'AutoImages__sort' => 'integer', 'AutoImages.sort' => 'integer', 'sort' => 'integer', 'AutosAutoOptions__id' => 'integer', 'AutosAutoOptions.id' => 'integer', 'AutosAutoOptions__auto_id' => 'integer', 'AutosAutoOptions.auto_id' => 'integer', 'AutosAutoOptions__auto_option_id' => 'integer', 'AutosAutoOptions.auto_option_id' => 'integer', 'auto_option_id' => 'integer', 'Types_name_translation__id' => 'integer', 'Types_name_translation.id' => 'integer', 'Types_name_translation__locale' => 'string', 'Types_name_translation.locale' => 'string', 'locale' => 'string', 'Types_name_translation__model' => 'string', 'Types_name_translation.model' => 'string', 'model' => 'string', 'Types_name_translation__foreign_key' => 'integer', 'Types_name_translation.foreign_key' => 'integer', 'foreign_key' => 'integer', 'Types_name_translation__field' => 'string', 'Types_name_translation.field' => 'string', 'field' => 'string', 'Types_name_translation__content' => 'text', 'Types_name_translation.content' => 'text', 'content' => 'text', 'RegionsTitle__id' => 'integer', 'RegionsTitle.id' => 'integer', 'RegionsTitle__name' => 'string', 'RegionsTitle.name' => 'string', 'RegionsTitle__parent_id' => 'integer', 'RegionsTitle.parent_id' => 'integer' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 5, 'mapReducers' => (int) 0, 'contain' => [ 'Marks' => [], 'Models' => [], 'Types' => [ 'Types_name_translation' => [ [maximum depth reached] ] ], 'Phones' => [], 'Bodies' => [], 'Regions' => [ 'queryBuilder' => object(Closure) {}, 'RegionsTitle' => [[maximum depth reached]] ], 'Users' => [ 'queryBuilder' => object(Closure) {} ], 'AutoSpecifications' => [ 'queryBuilder' => object(Closure) {} ], 'AutoImages' => [ 'queryBuilder' => object(Closure) {} ], 'AutosAutoOptions' => [ 'queryBuilder' => object(Closure) {} ] ], 'matching' => [], 'extraOptions' => [], 'repository' => object(App\Model\Table\AutosTable) { 'registryAlias' => 'Autos', 'table' => 'autos', 'alias' => 'Autos', 'entityClass' => 'App\Model\Entity\Auto', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } }
* @return \Cake\Database\StatementInterface |
|
*/ |
|
public function execute() |
|
{ |
|
$statement = $this->_connection->run($this); |
|
$driver = $this->_connection->driver(); |
|
$typeMap = $this->getSelectTypeMap(); |
|
|
|
if ($typeMap->toArray() && $this->_typeCastAttached === false) { |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SQL could not be generated for this query as it is incomplete.', 'params' => [], 'defaultTypes' => [ 'Autos__id' => 'integer', 'Autos.id' => 'integer', 'id' => 'integer', 'Autos__user_id' => 'integer', 'Autos.user_id' => 'integer', 'user_id' => 'integer', 'Autos__auto_type_id' => 'integer', 'Autos.auto_type_id' => 'integer', 'auto_type_id' => 'integer', 'Autos__auto_body_id' => 'integer', 'Autos.auto_body_id' => 'integer', 'auto_body_id' => 'integer', 'Autos__auto_mark_id' => 'integer', 'Autos.auto_mark_id' => 'integer', 'auto_mark_id' => 'integer', 'Autos__auto_model_id' => 'integer', 'Autos.auto_model_id' => 'integer', 'auto_model_id' => 'integer', 'Autos__modification' => 'string', 'Autos.modification' => 'string', 'modification' => 'string', 'Autos__state' => 'string', 'Autos.state' => 'string', 'state' => 'string', 'Autos__region_id' => 'integer', 'Autos.region_id' => 'integer', 'region_id' => 'integer', 'Autos__production' => 'integer', 'Autos.production' => 'integer', 'production' => 'integer', 'Autos__run' => 'integer', 'Autos.run' => 'integer', 'run' => 'integer', 'Autos__auction' => 'string', 'Autos.auction' => 'string', 'auction' => 'string', 'Autos__exchange' => 'string', 'Autos.exchange' => 'string', 'exchange' => 'string', 'Autos__bonded' => 'string', 'Autos.bonded' => 'string', 'bonded' => 'string', 'Autos__verify' => 'string', 'Autos.verify' => 'string', 'verify' => 'string', 'Autos__price' => 'integer', 'Autos.price' => 'integer', 'price' => 'integer', 'Autos__price_bonded' => 'float', 'Autos.price_bonded' => 'float', 'price_bonded' => 'float', 'Autos__count_phone' => 'integer', 'Autos.count_phone' => 'integer', 'count_phone' => 'integer', 'Autos__count_click' => 'integer', 'Autos.count_click' => 'integer', 'count_click' => 'integer', 'Autos__description' => 'text', 'Autos.description' => 'text', 'description' => 'text', 'Autos__publication_type' => 'string', 'Autos.publication_type' => 'string', 'publication_type' => 'string', 'Autos__urgently' => 'string', 'Autos.urgently' => 'string', 'urgently' => 'string', 'Autos__color' => 'string', 'Autos.color' => 'string', 'color' => 'string', 'Autos__source' => 'text', 'Autos.source' => 'text', 'source' => 'text', 'Autos__publication_end' => 'integer', 'Autos.publication_end' => 'integer', 'publication_end' => 'integer', 'Autos__sold' => 'string', 'Autos.sold' => 'string', 'sold' => 'string', 'Autos__active' => 'string', 'Autos.active' => 'string', 'active' => 'string', 'Autos__deleted' => 'string', 'Autos.deleted' => 'string', 'deleted' => 'string', 'Autos__created' => 'integer', 'Autos.created' => 'integer', 'created' => 'integer', 'Autos__modified' => 'integer', 'Autos.modified' => 'integer', 'modified' => 'integer', 'Marks__id' => 'integer', 'Marks.id' => 'integer', 'Marks__auto_type_id' => 'integer', 'Marks.auto_type_id' => 'integer', 'Marks__name' => 'string', 'Marks.name' => 'string', 'name' => 'string', 'Models__id' => 'integer', 'Models.id' => 'integer', 'Models__auto_mark_id' => 'integer', 'Models.auto_mark_id' => 'integer', 'Models__name' => 'string', 'Models.name' => 'string', 'Models__parent_id' => 'integer', 'Models.parent_id' => 'integer', 'parent_id' => 'integer', 'Types__id' => 'integer', 'Types.id' => 'integer', 'Types__name' => 'string', 'Types.name' => 'string', 'Phones__id' => 'integer', 'Phones.id' => 'integer', 'Phones__auto_id' => 'integer', 'Phones.auto_id' => 'integer', 'auto_id' => 'integer', 'Phones__phone' => 'string', 'Phones.phone' => 'string', 'phone' => 'string', 'Bodies__id' => 'integer', 'Bodies.id' => 'integer', 'Bodies__auto_type_id' => 'integer', 'Bodies.auto_type_id' => 'integer', 'Bodies__name' => 'string', 'Bodies.name' => 'string', 'Regions__id' => 'integer', 'Regions.id' => 'integer', 'Regions__name' => 'string', 'Regions.name' => 'string', 'Regions__parent_id' => 'integer', 'Regions.parent_id' => 'integer', 'Users__id' => 'integer', 'Users.id' => 'integer', 'Users__email' => 'string', 'Users.email' => 'string', 'email' => 'string', 'Users__name' => 'string', 'Users.name' => 'string', 'Users__phone' => 'string', 'Users.phone' => 'string', 'Users__password' => 'string', 'Users.password' => 'string', 'password' => 'string', 'Users__org_name' => 'string', 'Users.org_name' => 'string', 'org_name' => 'string', 'Users__region_id' => 'integer', 'Users.region_id' => 'integer', 'Users__balance' => 'float', 'Users.balance' => 'float', 'balance' => 'float', 'Users__role' => 'string', 'Users.role' => 'string', 'role' => 'string', 'Users__parsed' => 'string', 'Users.parsed' => 'string', 'parsed' => 'string', 'Users__publications' => 'integer', 'Users.publications' => 'integer', 'publications' => 'integer', 'Users__tops' => 'integer', 'Users.tops' => 'integer', 'tops' => 'integer', 'Users__reset_password' => 'string', 'Users.reset_password' => 'string', 'reset_password' => 'string', 'Users__dispatch' => 'string', 'Users.dispatch' => 'string', 'dispatch' => 'string', 'Users__vk_id' => 'biginteger', 'Users.vk_id' => 'biginteger', 'vk_id' => 'biginteger', 'Users__fb_id' => 'biginteger', 'Users.fb_id' => 'biginteger', 'fb_id' => 'biginteger', 'Users__created' => 'integer', 'Users.created' => 'integer', 'AutoSpecifications__id' => 'integer', 'AutoSpecifications.id' => 'integer', 'AutoSpecifications__auto_id' => 'integer', 'AutoSpecifications.auto_id' => 'integer', 'AutoSpecifications__auto_fuel_id' => 'integer', 'AutoSpecifications.auto_fuel_id' => 'integer', 'auto_fuel_id' => 'integer', 'AutoSpecifications__engine' => 'float', 'AutoSpecifications.engine' => 'float', 'engine' => 'float', 'AutoSpecifications__power' => 'integer', 'AutoSpecifications.power' => 'integer', 'power' => 'integer', 'AutoSpecifications__auto_gearbox_id' => 'integer', 'AutoSpecifications.auto_gearbox_id' => 'integer', 'auto_gearbox_id' => 'integer', 'AutoSpecifications__degrees' => 'integer', 'AutoSpecifications.degrees' => 'integer', 'degrees' => 'integer', 'AutoSpecifications__auto_drive_id' => 'integer', 'AutoSpecifications.auto_drive_id' => 'integer', 'auto_drive_id' => 'integer', 'AutoSpecifications__auto_color_id' => 'integer', 'AutoSpecifications.auto_color_id' => 'integer', 'auto_color_id' => 'integer', 'AutoSpecifications__auto_color_type_id' => 'integer', 'AutoSpecifications.auto_color_type_id' => 'integer', 'auto_color_type_id' => 'integer', 'AutoSpecifications__door' => 'integer', 'AutoSpecifications.door' => 'integer', 'door' => 'integer', 'AutoSpecifications__seats' => 'integer', 'AutoSpecifications.seats' => 'integer', 'seats' => 'integer', 'AutoSpecifications__eko' => 'integer', 'AutoSpecifications.eko' => 'integer', 'eko' => 'integer', 'AutoImages__id' => 'integer', 'AutoImages.id' => 'integer', 'AutoImages__img_original' => 'text', 'AutoImages.img_original' => 'text', 'img_original' => 'text', 'AutoImages__img_small' => 'text', 'AutoImages.img_small' => 'text', 'img_small' => 'text', 'AutoImages__img_edit' => 'text', 'AutoImages.img_edit' => 'text', 'img_edit' => 'text', 'AutoImages__user_id' => 'integer', 'AutoImages.user_id' => 'integer', 'AutoImages__auto_id' => 'integer', 'AutoImages.auto_id' => 'integer', 'AutoImages__tmp' => 'string', 'AutoImages.tmp' => 'string', 'tmp' => 'string', 'AutoImages__sort' => 'integer', 'AutoImages.sort' => 'integer', 'sort' => 'integer', 'AutosAutoOptions__id' => 'integer', 'AutosAutoOptions.id' => 'integer', 'AutosAutoOptions__auto_id' => 'integer', 'AutosAutoOptions.auto_id' => 'integer', 'AutosAutoOptions__auto_option_id' => 'integer', 'AutosAutoOptions.auto_option_id' => 'integer', 'auto_option_id' => 'integer', 'Types_name_translation__id' => 'integer', 'Types_name_translation.id' => 'integer', 'Types_name_translation__locale' => 'string', 'Types_name_translation.locale' => 'string', 'locale' => 'string', 'Types_name_translation__model' => 'string', 'Types_name_translation.model' => 'string', 'model' => 'string', 'Types_name_translation__foreign_key' => 'integer', 'Types_name_translation.foreign_key' => 'integer', 'foreign_key' => 'integer', 'Types_name_translation__field' => 'string', 'Types_name_translation.field' => 'string', 'field' => 'string', 'Types_name_translation__content' => 'text', 'Types_name_translation.content' => 'text', 'content' => 'text', 'RegionsTitle__id' => 'integer', 'RegionsTitle.id' => 'integer', 'RegionsTitle__name' => 'string', 'RegionsTitle.name' => 'string', 'RegionsTitle__parent_id' => 'integer', 'RegionsTitle.parent_id' => 'integer' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 6, 'mapReducers' => (int) 0, 'contain' => [ 'Marks' => [], 'Models' => [], 'Types' => [ 'Types_name_translation' => [ [maximum depth reached] ] ], 'Phones' => [], 'Bodies' => [], 'Regions' => [ 'queryBuilder' => object(Closure) {}, 'RegionsTitle' => [[maximum depth reached]] ], 'Users' => [ 'queryBuilder' => object(Closure) {} ], 'AutoSpecifications' => [ 'queryBuilder' => object(Closure) {} ], 'AutoImages' => [ 'queryBuilder' => object(Closure) {} ], 'AutosAutoOptions' => [ 'queryBuilder' => object(Closure) {} ] ], 'matching' => [], 'extraOptions' => [], 'repository' => object(App\Model\Table\AutosTable) { 'registryAlias' => 'Autos', 'table' => 'autos', 'alias' => 'Autos', 'entityClass' => 'App\Model\Entity\Auto', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } }
|
|
return new $decorator($this->_results); |
|
} |
|
|
|
$statement = $this->getEagerLoader()->loadExternal($this, $this->execute()); |
|
|
|
return new ResultSet($this, $statement); |
|
} |
|
|
No arguments
if ($this->_cache) { |
|
$results = $this->_cache->fetch($this); |
|
} |
|
if (!isset($results)) { |
|
$results = $this->_decorateResults($this->_execute()); |
|
if ($this->_cache) { |
|
$this->_cache->store($this, $results); |
|
} |
|
} |
No arguments
'You cannot call all() on a non-select query. Use execute() instead.' |
|
); |
|
} |
|
|
|
return $this->_all(); |
|
} |
|
|
|
/** |
|
* Trigger the beforeFind event on the query's repository object. |
No arguments
if ($this->_dirty) { |
|
$this->limit(1); |
|
} |
|
|
|
return $this->all()->first(); |
|
} |
|
|
|
/** |
|
* Get the first result from the executing query or raise an exception. |
No arguments
}, 'AutosAutoOptions' => function ($q1) { |
|
return $q1->contain(['AutoOptions' => function ($q1) { |
|
return $q1->contain(['AutoOptionsTitle']); |
|
}]); |
|
}])->first(); |
|
|
|
if (empty($auto)) { |
|
throw new NotFoundException(__('Auto not found')); |
|
} |
No arguments
} |
|
/* @var callable $callable */ |
|
$callable = [$this, $request->getParam('action')]; |
|
|
|
return $callable(...$request->getParam('pass')); |
|
} |
|
|
|
/** |
|
* Merge components, helpers vars from |
'auto_vaz_2103_2103_14720'
if ($result instanceof Response) { |
|
return $result; |
|
} |
|
|
|
$response = $controller->invokeAction(); |
|
if ($response !== null && !($response instanceof Response)) { |
|
throw new LogicException('Controller actions can only return Cake\Network\Response or null.'); |
|
} |
|
|
No arguments
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if (isset($request->params['return'])) { |
|
return $response; |
|
} |
|
|
object(App\Controller\SearchController) { paginate => [ 'limit' => (int) 10 ] name => 'Search' helpers => [] request => object(Cake\Http\ServerRequest) { params => [ [maximum depth reached] ] data => [[maximum depth reached]] query => [[maximum depth reached]] cookies => [[maximum depth reached]] url => 'auto_vaz_2103_2103_14720' base => '' webroot => '/' here => '/auto_vaz_2103_2103_14720' trustProxy => false [protected] _environment => [ [maximum depth reached] ] [protected] _input => null [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Zend\Diactoros\PhpInputStream) {} [protected] uri => object(Zend\Diactoros\Uri) {} [protected] session => object(Cake\Network\Session) {} [protected] attributes => [[maximum depth reached]] [protected] emulatedAttributes => [ [maximum depth reached] ] [protected] uploadedFiles => [[maximum depth reached]] [protected] protocol => null [protected] requestTarget => null } response => object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => [[maximum depth reached]], 'cacheDirectives' => [[maximum depth reached]], 'body' => '' } autoRender => true components => [] View => null plugin => null passedArgs => [ (int) 0 => 'auto_vaz_2103_2103_14720' ] modelClass => 'Search' viewClass => null viewVars => [ 'back_href' => '/search/', 'site_locale' => 'ru' ] RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Flash => object(Cake\Controller\Component\FlashComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Cookie => object(Cake\Controller\Component\CookieComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Auth => object(Cake\Controller\Component\AuthComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Paginator => object(Cake\Controller\Component\PaginatorComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } AutoBrandsBodies => object(App\Model\Table\AutoBrandsBodiesTable) { 'registryAlias' => 'AutoBrandsBodies', 'table' => 'auto_brands_bodies', 'alias' => 'AutoBrandsBodies', 'entityClass' => '\Cake\ORM\Entity', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } AutoBodies => object(App\Model\Table\AutoBodiesTable) { 'registryAlias' => 'AutoBodies', 'table' => 'auto_bodies', 'alias' => 'AutoBodies', 'entityClass' => 'App\Model\Entity\AutoBodies', 'associations' => [[maximum depth reached]], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } AutoBrands => object(App\Model\Table\AutoBrandsTable) { 'registryAlias' => 'AutoBrands', 'table' => 'auto_brands', 'alias' => 'AutoBrands', 'entityClass' => '\Cake\ORM\Entity', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } AutoModels => object(App\Model\Table\AutoModelsTable) { 'registryAlias' => 'AutoModels', 'table' => 'auto_models', 'alias' => 'AutoModels', 'entityClass' => '\Cake\ORM\Entity', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } Autos => object(App\Model\Table\AutosTable) { 'registryAlias' => 'Autos', 'table' => 'autos', 'alias' => 'Autos', 'entityClass' => 'App\Model\Entity\Auto', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } [protected] _responseClass => 'Cake\Network\Response' [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\SearchController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => '\Cake\Event\Event' } [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [ [maximum depth reached] ], '_isGlobal' => false, '_eventList' => null, '_trackEvents' => false, '_generalManager' => '(object) EventManager' } [protected] _eventClass => '\Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) { [protected] _config => [[maximum depth reached]] [protected] _instances => [ [maximum depth reached] ] [protected] _fallbacked => [[maximum depth reached]] [protected] _options => [ [maximum depth reached] ] } [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => object(Cake\View\ViewBuilder) { [protected] _templatePath => null [protected] _template => null [protected] _plugin => null [protected] _theme => null [protected] _layout => 'autoafisha' [protected] _autoLayout => null [protected] _layoutPath => null [protected] _name => null [protected] _className => null [protected] _options => [[maximum depth reached]] [protected] _helpers => [[maximum depth reached]] } }
*/ |
|
public function dispatch(ServerRequest $request, Response $response) |
|
{ |
|
$actionDispatcher = new ActionDispatcher(null, $this->eventManager(), $this->_filters); |
|
$response = $actionDispatcher->dispatch($request, $response); |
|
if (isset($request->params['return'])) { |
|
return $response->body(); |
|
} |
|
|
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Search', 'action' => 'car', '_ext' => null, 'pass' => [ (int) 0 => 'auto_vaz_2103_2103_14720' ], '_matchedRoute' => '/*', 'isAjax' => false ] data => [] query => [] cookies => [] url => 'auto_vaz_2103_2103_14720' base => '' webroot => '/' here => '/auto_vaz_2103_2103_14720' trustProxy => false [protected] _environment => [ 'TMPDIR' => '/home/autovevr/.system/tmp', 'PHPRC' => '/home/autovevr/.system/php/www.autoafisha.ua.ini', 'TEMP' => '/home/autovevr/.system/tmp', 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'PWD' => '/home/autovevr/autoafisha.ua/www/', 'SERVING_HOST_INFO' => 'apache:php56:1146800:281439:www.autoafisha.ua;', 'SHLVL' => '0', 'TMP' => '/home/autovevr/.system/tmp', 'HTTP_ACCEPT' => '*/*', 'HTTP_CONNECTION' => 'close', 'CONTENT_LENGTH' => '0', 'HTTP_HOST' => 'autoafisha.ua', 'HTTP_REFERER' => 'http://autoafisha.ua/auto_vaz_2103_2103_14720', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_GEOIP_COUNTRY_CODE' => 'US', 'HTTP_SSL' => '1', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_INTERNAL_REAL_IP' => '3.239.162.98', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_UNIQUE_ID' => 'ZgZyx2L221piJHMdZSh7BgAAABE', 'REDIRECT_SCRIPT_URL' => '/auto_vaz_2103_2103_14720', 'REDIRECT_SCRIPT_URI' => 'https://autoafisha.ua/auto_vaz_2103_2103_14720', 'REDIRECT_vhost_id' => '1146800', 'REDIRECT_account_id' => '281439', 'REDIRECT_PWD' => '/home/autovevr/autoafisha.ua/www/', 'REDIRECT_TMP' => '/home/autovevr/.system/tmp', 'REDIRECT_TEMP' => '/home/autovevr/.system/tmp', 'REDIRECT_STATUS' => '200', 'HTTPS' => 'on', 'UNIQUE_ID' => 'ZgZyx2L221piJHMdZSh7BgAAABE', 'SCRIPT_URL' => '/auto_vaz_2103_2103_14720', 'SCRIPT_URI' => 'https://autoafisha.ua/auto_vaz_2103_2103_14720', 'vhost_id' => '1146800', 'account_id' => '281439', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'autoafisha.ua', 'SERVER_ADDR' => '127.0.0.1', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '3.239.162.98', 'DOCUMENT_ROOT' => '/home/autovevr/autoafisha.ua/www/', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/autovevr/autoafisha.ua/www/', 'SERVER_ADMIN' => 'server@admin.com', 'SCRIPT_FILENAME' => '/home/autovevr/autoafisha.ua/www/index.php', 'REMOTE_PORT' => '9358', 'REDIRECT_URL' => '/auto_vaz_2103_2103_14720', 'SERVER_PROTOCOL' => 'HTTP/1.0', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/auto_vaz_2103_2103_14720', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711698631.2479, 'REQUEST_TIME' => (int) 1711698631, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'autoafisha.ua' [private] port => null [private] path => '/auto_vaz_2103_2103_14720' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => '' }
$dispatcher = DispatcherFactory::create(); |
|
$dispatcher->dispatch( |
|
Request::createFromGlobals(), |
|
new Response() |
|
); |
|
|
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Search', 'action' => 'car', '_ext' => null, 'pass' => [ (int) 0 => 'auto_vaz_2103_2103_14720' ], '_matchedRoute' => '/*', 'isAjax' => false ] data => [] query => [] cookies => [] url => 'auto_vaz_2103_2103_14720' base => '' webroot => '/' here => '/auto_vaz_2103_2103_14720' trustProxy => false [protected] _environment => [ 'TMPDIR' => '/home/autovevr/.system/tmp', 'PHPRC' => '/home/autovevr/.system/php/www.autoafisha.ua.ini', 'TEMP' => '/home/autovevr/.system/tmp', 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'PWD' => '/home/autovevr/autoafisha.ua/www/', 'SERVING_HOST_INFO' => 'apache:php56:1146800:281439:www.autoafisha.ua;', 'SHLVL' => '0', 'TMP' => '/home/autovevr/.system/tmp', 'HTTP_ACCEPT' => '*/*', 'HTTP_CONNECTION' => 'close', 'CONTENT_LENGTH' => '0', 'HTTP_HOST' => 'autoafisha.ua', 'HTTP_REFERER' => 'http://autoafisha.ua/auto_vaz_2103_2103_14720', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_GEOIP_COUNTRY_CODE' => 'US', 'HTTP_SSL' => '1', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_INTERNAL_REAL_IP' => '3.239.162.98', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_UNIQUE_ID' => 'ZgZyx2L221piJHMdZSh7BgAAABE', 'REDIRECT_SCRIPT_URL' => '/auto_vaz_2103_2103_14720', 'REDIRECT_SCRIPT_URI' => 'https://autoafisha.ua/auto_vaz_2103_2103_14720', 'REDIRECT_vhost_id' => '1146800', 'REDIRECT_account_id' => '281439', 'REDIRECT_PWD' => '/home/autovevr/autoafisha.ua/www/', 'REDIRECT_TMP' => '/home/autovevr/.system/tmp', 'REDIRECT_TEMP' => '/home/autovevr/.system/tmp', 'REDIRECT_STATUS' => '200', 'HTTPS' => 'on', 'UNIQUE_ID' => 'ZgZyx2L221piJHMdZSh7BgAAABE', 'SCRIPT_URL' => '/auto_vaz_2103_2103_14720', 'SCRIPT_URI' => 'https://autoafisha.ua/auto_vaz_2103_2103_14720', 'vhost_id' => '1146800', 'account_id' => '281439', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'autoafisha.ua', 'SERVER_ADDR' => '127.0.0.1', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '3.239.162.98', 'DOCUMENT_ROOT' => '/home/autovevr/autoafisha.ua/www/', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/autovevr/autoafisha.ua/www/', 'SERVER_ADMIN' => 'server@admin.com', 'SCRIPT_FILENAME' => '/home/autovevr/autoafisha.ua/www/index.php', 'REMOTE_PORT' => '9358', 'REDIRECT_URL' => '/auto_vaz_2103_2103_14720', 'SERVER_PROTOCOL' => 'HTTP/1.0', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/auto_vaz_2103_2103_14720', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711698631.2479, 'REQUEST_TIME' => (int) 1711698631, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'autoafisha.ua' [private] port => null [private] path => '/auto_vaz_2103_2103_14720' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => '' }
If you want to customize this error message, create src/Template/Error/error500.ctp