[mod] Returning id as int

This commit is contained in:
Jose Pabl Domingo Aramburo Sanchez 2018-08-08 23:06:38 -06:00
parent 3902435690
commit 7ceb2aad93

View File

@ -38,7 +38,12 @@ class EmployeeApplication{
} }
$stmt = null; $stmt = null;
return $results; $employeeTypes = array();
foreach($results as $row){
$employeeTypes[] = array('id' => (int)$row['id'], 'name' => $row['name']);
}
return $employeeTypes;
} }
/** /**