/** * Hydrates (populates) the object variables with values from the database resultset. * * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM) * @param int $startcol 0-based offset column which indicates which restultset column to start with. * @param boolean $rehydrate Whether this object is being re-hydrated from the database. * @return int next starting column * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. */ public function hydrate($row, $startcol = 0, $rehydrate = false) { parent::hydrate($row, $startcol, $rehydrate); $data = $this->getData(); if ($data) { $this->dataObject = unserialize($this->getData()); } }
/** * Returns a peer instance associated with this om. * * Since Peer classes are not to have any instance attributes, this method returns the * same instance for all member of this class. The method could therefore * be static, but this would prevent one from overriding the behavior. * * @return Ezer_PropelStepPeer */ public function getPeer() { if (self::$peer === null) { self::$peer = new Ezer_PropelStepPeer(); } return self::$peer; }