datamappify
datamappify copied to clipboard
Timestamps
Right now once an entity is saved, you have to reload it to populate the timestamps:
user = User.new(name: 'test')
UserRepository.save(user)
user.created_at #=> nil
UserRepository.find(user.id).created_at #=> 2013-07-13 21:17:35 +0200
Thanks! I just had a quick look and looks like we need a way to define attributes that should be force fetched upon returning an entity, as created_at
and updated_at
were not assigned. I'm marking this as a feature addition for now. :)