Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamps #10

Open
mattbeedle opened this issue Jul 13, 2013 · 1 comment
Open

Timestamps #10

mattbeedle opened this issue Jul 13, 2013 · 1 comment
Labels

Comments

@mattbeedle
Copy link
Contributor

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
@fredwu
Copy link
Owner

fredwu commented Jul 23, 2013

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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants