Exemplo n.º 1
0
 function reportVarExists($sRepVarUid)
 {
     $con = Propel::getConnection(ReportVarPeer::DATABASE_NAME);
     try {
         $oRepVarUid = ReportVarPeer::retrieveByPk($sRepVarUid);
         if (is_object($oRepVarUid) && get_class($oRepVarUid) == 'ReportVar') {
             return true;
         } else {
             return false;
         }
     } catch (Exception $oError) {
         throw $oError;
     }
 }