Exemplo n.º 1
0
 /**
  * Load the Application row specified in [app_id] column value.
  * 
  * param      string $AppUid   the uid of the application 
  * return     array  $Fields   the fields
  * Function Load
  * access public
  */
 function Load($SysUid)
 {
     $con = Propel::getConnection(SystemsPeer::DATABASE_NAME);
     try {
         $oSystem = SystemsPeer::retrieveByPk($SysUid);
         if (is_object($oSystem) && get_class($oSystem) == 'Systems') {
             $aFields = $oSystem->toArray(BasePeer::TYPE_FIELDNAME);
             $this->fromArray($aFields, BasePeer::TYPE_FIELDNAME);
             return $aFields;
         } else {
             throw new Exception("This Systems row doesn't exist!");
         }
     } catch (Exception $oError) {
         throw $oError;
     }
 }