Ejemplo n.º 1
0
 public function routeExists ($sRouUid)
 {
     $con = Propel::getConnection( RoutePeer::DATABASE_NAME );
     try {
         $oRouUid = RoutePeer::retrieveByPk( $sRouUid );
         if (is_object( $oRouUid ) && get_class( $oRouUid ) == 'Route') {
             return true;
         } else {
             return false;
         }
     } catch (Exception $oError) {
         throw ($oError);
     }
 }