Commit 30166cf8 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction flashmessenger

parent ea014e13
......@@ -41,14 +41,11 @@ class DossierAutreService extends AbstractEntityService
*/
$sql = $dossierAutre->getSqlValue();
if (!empty($sql)) {
try {
$connection = $this->getEntityManager()->getConnection();
$result = $connection->fetchAll($sql);
foreach ($result as $k => $v) {
$datas [$v['VALUE_OPTION']] = $v['VALUE_OPTION'];
}
} catch (\Exception $e) {
$this->flashMessenger()->addErrorMessage($this->translate($e));
$connection = $this->getEntityManager()->getConnection();
$result = $connection->fetchAll($sql);
foreach ($result as $k => $v) {
$datas [$v['VALUE_OPTION']] = $v['VALUE_OPTION'];
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment