/** * @covers ResultSet::setTime */ public function testSetTime() { $timeKey = 'aTime'; $time = '16:02:15'; $this->result->setTime($timeKey, $time); $actual = $this->result->getTime($timeKey); $this->assertNotNull($actual); }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->id = $rs->getInt($startcol + 0); $this->employee_id = $rs->getInt($startcol + 1); $this->academic_calendar_id = $rs->getInt($startcol + 2); $this->status = $rs->getInt($startcol + 3); $this->start = $rs->getTimestamp($startcol + 4, null); $this->date_in = $rs->getDate($startcol + 5, null); $this->datang = $rs->getTime($startcol + 6, null); $this->resetModified(); $this->setNew(false); return $startcol + 7; } catch (Exception $e) { throw new PropelException("Error populating EmployeeAbsenceDev object", $e); } }
public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->id = $rs->getInt($startcol + 0); $this->col_item_id = $rs->getInt($startcol + 1); $this->member_id = $rs->getInt($startcol + 2); $this->col_status_id = $rs->getInt($startcol + 3); $this->order_date = $rs->getTime($startcol + 4, null); $this->due_date = $rs->getTime($startcol + 5, null); $this->return_date = $rs->getTime($startcol + 6, null); $this->order_note = $rs->getString($startcol + 7); $this->return_note = $rs->getString($startcol + 8); $this->fine = $rs->getFloat($startcol + 9); $this->misc_fine = $rs->getFloat($startcol + 10); $this->resetModified(); $this->setNew(false); return $startcol + 11; } catch (Exception $e) { throw new PropelException("Error populating CirHistory object", $e); } }