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

Correction flashmessenger

parent ea014e13
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -41,15 +41,12 @@ 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));
            }
        }

        return $datas;