Using getKey() instead of $this->id

Allows overriding of the primary key for a table using the $primaryKey variable in the model
Thanks to maclof/revisionable/@cb9b679569d5af59113d896a082e256bf2a003a6