I’ve got a custom ID generator for a class. When I create a new instance of this class and saves it to the database using .save(), and which point is the ID actually generated? Is the generation delayed until the transaction is comitted, or will it be generated when i invoke .save() ?
Share
the id is generated on the save.
if you are within a transaction you have two options a commit or rollback