function createHuntFromRow($dbRow) { $rowHunt = new hunt_info(); $rowHunt->setId($dbRow['id']); $rowHunt->setHunterId($dbRow['hunter_id']); $rowHunt->setCreated($dbRow['created']); return $rowHunt; }