function createHuntDetailsFromRow($dbRow) { $rowHuntDetails = new hunt_details_info(); $rowHuntDetails->setId($dbRow['id']); $rowHuntDetails->setHuntId($dbRow['hunt_id']); $rowHuntDetails->setStatus($dbRow['status']); $rowHuntDetails->setHunterId($dbRow['hunter_id']); $rowHuntDetails->setHunterCount($dbRow['hunter_count']); $rowHuntDetails->setHuntDate($dbRow['hunt_date']); $rowHuntDetails->setHuntHours($dbRow['hunt_hours']); $rowHuntDetails->setCarCount($dbRow['car_count']); $rowHuntDetails->setBlindId($dbRow['blind_id']); $rowHuntDetails->setAreaId($dbRow['area_id']); $rowHuntDetails->setCreated($dbRow['created']); $rowHuntDetails->setMultiBlind($dbRow['is_multi_blind']); $rowHuntDetails->setJumpShoot($dbRow['is_jump_shoot']); $rowHuntDetails->setBagChecked($dbRow['is_bag_checked']); return $rowHuntDetails; }