Instead of const 1 there should be obj.id, some adapters such as redis have not reset autoincrements on automigrate.