/** * verify if Input row specified in [DynUid] exists. * * @param string $sUid the uid of the Prolication */ function InputExists($sUid) { $con = Propel::getConnection(InputDocumentPeer::DATABASE_NAME); try { $oObj = InputDocumentPeer::retrieveByPk($sUid); if (is_object($oObj) && get_class($oObj) == 'InputDocument') { return true; } else { return false; } } catch (Exception $oError) { throw $oError; } }