Open manelj opened 7 years ago
You are right. The validation of the unique constraint is limited to new entities: https://github.com/spotorm/spot2/blob/master/lib/Mapper.php#L1125
I don't know if there is a reason being that, but the code should still be failing at the database level with an exception.
I think that if i update an entity changing the value of an "unique" field, save system does not check unique integrity.