示例#1
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->content = $rs->getString($startcol + 1);
         $this->gz_content = $rs->getBlob($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating nahoWikiContent object", $e);
     }
 }
示例#2
0
 /**
  * Hydrates (populates) the object variables with values from the database resultset.
  *
  * An offset (1-based "start column") is specified so that objects can be hydrated
  * with a subset of the columns in the resultset rows.  This is needed, for example,
  * for results of JOIN queries where the resultset row includes columns from two or
  * more tables.
  *
  * @param      ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
  * @param      int $startcol 1-based offset column which indicates which restultset column to start with.
  * @return     int next starting column
  * @throws     PropelException  - Any caught Exception will be rewrapped as a PropelException.
  */
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->job = $rs->getInt($startcol + 1);
         $this->text = $rs->getBlob($startcol + 2);
         $this->type = $rs->getInt($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         // FIXME - using NUM_COLUMNS may be clearer.
         return $startcol + 4;
         // 4 = ImportErrorPeer::NUM_COLUMNS - ImportErrorPeer::NUM_LAZY_LOAD_COLUMNS).
     } catch (Exception $e) {
         throw new PropelException("Error populating ImportError object", $e);
     }
 }
示例#3
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->member_id = $rs->getInt($startcol + 1);
         $this->photo = $rs->getBlob($startcol + 2);
         $this->thumbnail = $rs->getBlob($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating MemberPhoto object", $e);
     }
 }
示例#4
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->catalog_id = $rs->getInt($startcol + 1);
         $this->cover = $rs->getBlob($startcol + 2);
         $this->thumbnail = $rs->getBlob($startcol + 3);
         $this->files = $rs->getBlob($startcol + 4);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating Catalog Copied object", $e);
     }
 }
示例#5
0
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->test_applicant_id = $rs->getInt($startcol + 1);
         $this->photo = $rs->getBlob($startcol + 2);
         $this->thumbnail = $rs->getBlob($startcol + 3);
         $this->filename = $rs->getString($startcol + 4);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 5;
     } catch (Exception $e) {
         throw new PropelException("Error populating TestApplicantPhoto object", $e);
     }
 }