Beispiel #1
0
 /**
  * verify if Step row specified in [sUid] exists.
  *
  * @param      string $sUid   the uid of the
  */
 function StepExists($sUid)
 {
     $con = Propel::getConnection(StepPeer::DATABASE_NAME);
     try {
         $oObj = StepPeer::retrieveByPk($sUid);
         if (is_object($oObj) && get_class($oObj) == 'Step') {
             return true;
         } else {
             return false;
         }
     } catch (Exception $oError) {
         throw $oError;
     }
 }