X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FPathController.php;h=394da6921cac13042844cc78e0a5e4d99a839041;hp=f0ef477e0969fdd32a6911aced09276a453ed689;hb=e534c17db2f3986751f4a96900e4aaae56d34873;hpb=ccec698be8d221c48a6590af099d4390ee0a31e6 diff --git a/application/controllers/PathController.php b/application/controllers/PathController.php index f0ef477..394da69 100644 --- a/application/controllers/PathController.php +++ b/application/controllers/PathController.php @@ -90,20 +90,7 @@ class PathController extends Zend_Controller_Action /* now, saving !*/ $pathMapper = new Syj_Model_PathMapper(); - try { - $pathMapper->save ($path); - } catch(Zend_Db_Statement_Exception $e) { - if ($e->getCode() == 23505) { // 23505: Unique violation throw new Syj_Exception_Request(); - $message = $e->getMessage(); - if (strpos($message, 'paths_geom_key') !== false) { - throw new Syj_Exception_InvalidGeomUpload("uniquepath"); - } else { - throw $e; - } - } else { - throw $e; - } - } + $pathMapper->save ($path); } }