If primary key is inserted, it seems result.prefix.generatedKey will not exist, so just use the inserted primary key instead
Merge branch 'master' of https://github.com/jcberquist/persistencecfc