Пример #1
0
 /**
  * verify if row specified in [GrpUid] exists.
  *
  * @param string $sProUid the uid of the Prolication
  */
 public function GroupwfExists($GrpUid)
 {
     $con = Propel::getConnection(GroupwfPeer::DATABASE_NAME);
     try {
         $oPro = GroupwfPeer::retrieveByPk($GrpUid);
         if (is_object($oPro) && get_class($oPro) == 'Groupwf') {
             return true;
         } else {
             return false;
         }
     } catch (Exception $oError) {
         throw $oError;
     }
 }