/** * 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()); } }