Suppression des documents dans la requete SQL

This commit is contained in:
Michael RICOIS 2012-11-07 17:20:20 +00:00
parent 69b3c56ec8
commit ce7ede6c25

View File

@ -693,8 +693,8 @@ class Entreprise extends WsScore
try {
$sql = $db->select()
->from(array('l'=>'liens2'),
array('id', 'idAct', 'PDetention', 'Pvote', 'MajMin', 'idPar', 'dateEffetLien',
'docRef', 'dateDocRef', 'dateInsert'))
array('id', 'idAct', 'PDetention', 'Pvote', 'MajMin', 'idPar',
'dateEffetLien', 'dateInsert'))
->where('idPar=?', $parent->id)
->join(array('r'=>'liensRef'), 'l.idAct=r.id',
array('siren','PpPm', 'RS', 'civilite', 'nom', 'prenom', 'nom_usage',
@ -737,8 +737,8 @@ class Entreprise extends WsScore
try {
$sql = $db->select()
->from(array('l'=>'liens2'),
array('id', 'idAct', 'PDetention', 'Pvote', 'MajMin', 'idPar', 'dateEffetLien',
'docRef', 'dateDocRef', 'dateInsert'))
array('id', 'idAct', 'PDetention', 'Pvote', 'MajMin', 'idPar',
'dateEffetLien', 'dateInsert'))
->where('idAct=?', $parent->id)
->join(array('r'=>'liensRef'), 'l.idPar=r.id',
array('siren','PpPm', 'RS', 'civilite', 'nom', 'prenom', 'nom_usage',
@ -769,10 +769,10 @@ class Entreprise extends WsScore
$detail->PDetention = $item->PDetention;
$detail->Pvote = $item->Pvote;
$detail->MajMin = $item->MajMin;
$detail->date = $item->dateEffetLien;
$detail->date = $item->dateEffetLien;
//@todo : Think how to display documents
$detail->docRef = $item->docRef;
$detail->docrefDate = $item->dateDocRef;
$tabPar[] = $detail;
}
}