Change table name
This commit is contained in:
parent
9284a04ec1
commit
7046c7a453
@ -136,9 +136,9 @@ class GestionController extends Zend_Controller_Action
|
||||
'e.uniteInsee',
|
||||
"DATE_FORMAT(e.dateAdded, '%Y/%m/%d %H:%i:%s') AS dateAdded"
|
||||
))
|
||||
->join('criteres', 'idCriteres = criteres.id', array(
|
||||
'criteres.reference AS critereReference',
|
||||
'criteres.login',
|
||||
->join('ciblage_criteres', 'idCriteres = ciblage_criteres.id', array(
|
||||
'ciblage_criteres.reference AS critereReference',
|
||||
'ciblage_criteres.login',
|
||||
))
|
||||
->where('e.dateStart = ?', "0000-00-00 00:00:00")
|
||||
->where('fichier = ""')
|
||||
@ -163,9 +163,9 @@ class GestionController extends Zend_Controller_Action
|
||||
"DATE_FORMAT(e.dateAdded, '%Y/%m/%d %H:%i:%s') AS dateAdded",
|
||||
'e.fichier'
|
||||
))
|
||||
->join('criteres', 'idCriteres = criteres.id', array(
|
||||
'criteres.reference AS critereReference',
|
||||
'criteres.login',
|
||||
->join('ciblage_criteres', 'idCriteres = ciblage_criteres.id', array(
|
||||
'ciblage_criteres.reference AS critereReference',
|
||||
'ciblage_criteres.login',
|
||||
))
|
||||
->where('fichier != ""')
|
||||
->order('e.dateAdded DESC');
|
||||
@ -216,15 +216,15 @@ class GestionController extends Zend_Controller_Action
|
||||
$comptagesM = new Application_Model_Comptages();
|
||||
|
||||
$sql = $comptagesM->select()->setIntegrityCheck(false)
|
||||
->from('comptages', array(
|
||||
'comptages.idDefinition',
|
||||
'comptages.resultat',
|
||||
'comptages.uniteInsee',
|
||||
"DATE_FORMAT(comptages.dateAjout, '%Y/%m/%d %H:%i:%s') as dateAjout"
|
||||
->from('ciblage_comptages', array(
|
||||
'ciblage_comptages.idDefinition',
|
||||
'ciblage_comptages.resultat',
|
||||
'ciblage_comptages.uniteInsee',
|
||||
"DATE_FORMAT(ciblage_comptages.dateAjout, '%Y/%m/%d %H:%i:%s') as dateAjout"
|
||||
))
|
||||
->join('criteres', 'comptages.idDefinition = criteres.id', array('criteres.reference'))
|
||||
->order('comptages.dateAjout DESC')
|
||||
->group('criteres.id');
|
||||
->join('ciblage_criteres', 'ciblage_comptages.idDefinition = ciblage_criteres.id', array('ciblage_criteres.reference'))
|
||||
->order('ciblage_comptages.dateAjout DESC')
|
||||
->group('ciblage_criteres.id');
|
||||
|
||||
$comptages = $comptagesM->fetchAll($sql)->toArray();
|
||||
Zend_Registry::get('firebug')->info($comptages);
|
||||
|
Loading…
Reference in New Issue
Block a user