Database Error
Error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Participant.chorale' in 'where clause'
SQL Query:
SELECT `Participant`.`id_participant`, `Participant`.`participant`, `Participant`.`id_maison`, `Participant`.`info`, `Participant`.`texte`, `Participant`.`photo`, `Participant`.`ext`, `Participant`.`check`, `Participant`.`grille`, `Participant`.`folder`, `Participant`.`newline`, `Maison`.`id_maison`, `Maison`.`maison`, `Maison`.`info`, `Maison`.`carte_x`, `Maison`.`carte_y`, `Maison`.`ordre`, `Maison`.`numero`, `Maison`.`folder`, `Maison`.`newline` FROM `ID125486_orb1`.`participants_2023` AS `Participant` LEFT JOIN `ID125486_orb1`.`maisons_2023` AS `Maison` ON (`Participant`.`id_maison` = `Maison`.`id_maison`) WHERE `Participant`.`chorale` = 1 ORDER BY `Participant`.`participant` ASC
Notice:
If you want to customize this error message, create app/View/Errors/pdo_error.ctp
Stack Trace
- CORE/Cake/Model/Datasource/DboSource.php line 459 → PDOStatement->execute(array)
try {
$query = $this->_connection->prepare($sql, $prepareOptions);
$query->setFetchMode(PDO::FETCH_LAZY);
if (!$query->execute($params)) {
$this->_results = $query;
- CORE/Cake/Model/Datasource/DboSource.php line 425 → DboSource->_execute(string, array)
$options += array('log' => $this->fullDebug);
$t = microtime(true);
$this->_result = $this->_execute($sql, $params);
'SELECT `Participant`.`id_participant`, `Participant`.`participant`, `Participant`.`id_maison`, `Participant`.`info`, `Participant`.`texte`, `Participant`.`photo`, `Participant`.`ext`, `Participant`.`check`, `Participant`.`grille`, `Participant`.`folder`, `Participant`.`newline`, `Maison`.`id_maison`, `Maison`.`maison`, `Maison`.`info`, `Maison`.`carte_x`, `Maison`.`carte_y`, `Maison`.`ordre`, `Maison`.`numero`, `Maison`.`folder`, `Maison`.`newline` FROM `ID125486_orb1`.`participants_2023` AS `Participant` LEFT JOIN `ID125486_orb1`.`maisons_2023` AS `Maison` ON (`Participant`.`id_maison` = `Maison`.`id_maison`) WHERE `Participant`.`chorale` = 1 ORDER BY `Participant`.`participant` ASC'
array()
- CORE/Cake/Model/Datasource/DboSource.php line 669 → DboSource->execute(string, array, array)
if ($cache && ($cached = $this->getQueryCache($sql, $params)) !== false) {
return $cached;
}
if ($result = $this->execute($sql, array(), $params)) {
$out = array();
'SELECT `Participant`.`id_participant`, `Participant`.`participant`, `Participant`.`id_maison`, `Participant`.`info`, `Participant`.`texte`, `Participant`.`photo`, `Participant`.`ext`, `Participant`.`check`, `Participant`.`grille`, `Participant`.`folder`, `Participant`.`newline`, `Maison`.`id_maison`, `Maison`.`maison`, `Maison`.`info`, `Maison`.`carte_x`, `Maison`.`carte_y`, `Maison`.`ordre`, `Maison`.`numero`, `Maison`.`folder`, `Maison`.`newline` FROM `ID125486_orb1`.`participants_2023` AS `Participant` LEFT JOIN `ID125486_orb1`.`maisons_2023` AS `Maison` ON (`Participant`.`id_maison` = `Maison`.`id_maison`) WHERE `Participant`.`chorale` = 1 ORDER BY `Participant`.`participant` ASC'
array()
array()
- CORE/Cake/Model/Datasource/DboSource.php line 1080 → DboSource->fetchAll(string, boolean)
$query = trim($this->generateAssociationQuery($model, null, null, null, null, $queryData, false, $null));
$resultSet = $this->fetchAll($query, $model->cacheQueries);
'SELECT `Participant`.`id_participant`, `Participant`.`participant`, `Participant`.`id_maison`, `Participant`.`info`, `Participant`.`texte`, `Participant`.`photo`, `Participant`.`ext`, `Participant`.`check`, `Participant`.`grille`, `Participant`.`folder`, `Participant`.`newline`, `Maison`.`id_maison`, `Maison`.`maison`, `Maison`.`info`, `Maison`.`carte_x`, `Maison`.`carte_y`, `Maison`.`ordre`, `Maison`.`numero`, `Maison`.`folder`, `Maison`.`newline` FROM `ID125486_orb1`.`participants_2023` AS `Participant` LEFT JOIN `ID125486_orb1`.`maisons_2023` AS `Maison` ON (`Participant`.`id_maison` = `Maison`.`id_maison`) WHERE `Participant`.`chorale` = 1 ORDER BY `Participant`.`participant` ASC'
false
- CORE/Cake/Model/Model.php line 2637 → DboSource->read(Participant, array)
return null;
}
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations();
object(Participant) {
useTable => 'participants_2023'
primaryKey => 'id_participant'
belongsTo => array(
[maximum depth reached]
)
useDbConfig => 'default'
id => false
data => array([maximum depth reached])
schemaName => 'ID125486_orb1'
table => 'participants_2023'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
name => 'Participant'
alias => 'Participant'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
hasMany => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
tablePrefix => ''
Maison => object(Maison) {}
}
array(
'conditions' => array(
'Participant.chorale' => (int) 1
),
'fields' => null,
'joins' => array(),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'page' => (int) 1,
'group' => null,
'callbacks' => true
)
- APP/Controller/ParticipantsController.php line 46 → Model->find(string, array)
public function chorale() {
// $result = $this->Participant->find( 'all', array( 'order' => array( 'Participant.participant' ), 'conditions' => array( 'Participant.info' => 'Chorale' ) ) ) ;
$result = $this->Participant->find( 'all', array( 'order' => array( 'Participant.participant' ), 'conditions' => array( 'Participant.chorale' => 1 ) ) ) ;
$this->set( 'participants', $result ) ;
'all'
array(
'order' => array(
(int) 0 => 'Participant.participant'
),
'conditions' => array(
'Participant.chorale' => (int) 1
)
)
- [internal function] → ParticipantsController->chorale()
- CORE/Cake/Controller/Controller.php line 485 → ReflectionMethod->invokeArgs(ParticipantsController, array)
'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
object(ParticipantsController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
name => 'Participants'
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Participants'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'chorale'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array([maximum depth reached])
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Participant'
modelKey => 'participant'
validationErrors => null
Acl => object(AclComponent) {}
Auth => object(AuthComponent) {}
Session => object(SessionComponent) {}
Fextern => object(FexternComponent) {}
Connexion => object(Connexion) {}
Participant => object(Participant) {}
}
array()
- CORE/Cake/Routing/Dispatcher.php line 186 → Controller->invokeAction(CakeRequest)
$controller->startupProcess();
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'participants/chorale'
base => ''
webroot => '/'
here => '/participants/chorale'
}
- CORE/Cake/Routing/Dispatcher.php line 161 → Dispatcher->_invoke(ParticipantsController, CakeRequest, CakeResponse)
));
}
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(ParticipantsController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
name => 'Participants'
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Participants'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'chorale'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array([maximum depth reached])
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Participant'
modelKey => 'participant'
validationErrors => null
Acl => object(AclComponent) {}
Auth => object(AuthComponent) {}
Session => object(SessionComponent) {}
Fextern => object(FexternComponent) {}
Connexion => object(Connexion) {}
Participant => object(Participant) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'participants/chorale'
base => ''
webroot => '/'
here => '/participants/chorale'
}
object(CakeResponse) {
}
- APP/webroot/index.php line 92 → Dispatcher->dispatch(CakeRequest, CakeResponse)
App::uses('Dispatcher', 'Routing');
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'participants/chorale'
base => ''
webroot => '/'
here => '/participants/chorale'
}
object(CakeResponse) {
}