Allow id to be modified directly by model

Thanks to Cristian Palos Rejano (@cpalosrejano) for the suggestion.
Closes #77