The theory behind it is ACID.
https://en.wikipedia.org/wiki/ACIDNot a long read and a solid explanation.
Most distributed databases have out-of-the-box support for that.
Some databases need something like a trigger, though, keeping track of multiple read access and generating a warning on commit that the record is being edited elsewhere.
I once wrote something like that for Sqlite ( a server-side user defined function that keeps a reference count in a separate table) which lacks that, because Sqlite is by design not a multi-user database.
It may be that mORMot already has something similar available, though?
In its simplest way, egsuh is right: simply all commits are accepted, but that is not how distributed databases usually work, since the commits can be conflicting, so care needs to be taken, otherwise the database may be permanently in a conflicting state for that record and that is not good database management. You need write locks and a trigger, usually this is built-in in some form.