pass $resultArray by reference
keep possible generated ID from save operation