Details
Description
Assuming a unique constraint defined on 'userId' - this code fails, there is a 'unique' validation error on the userId property
mockDomain(User, [new User(userId:'mike', password:'asldkfjh')])
User u = User.findByUserId('mike')
assertNotNull u
u.save()
assertFalse u.hasErrors()
MockUtils should check to see if there is a uniqueness error on object other than itself. Patch attached with possible solution.