heroku/databasedotcom — Issue #13: Should reload replace the instance
Author: pmorel
Created: 2011-10-11 13:01:49+00:00
State: open

Currenlty, reload on an sobject returns a new object instead of changing the instance itself.

if I do `account.reload` no fields are updated but If I do `account = account.reload`

Then the fields are reloaded.

Am I doing anything wrong or is it the normal way to proceed? Should the documentation be updated or the behaviour changed?

```
# Reloads the record from the Force.com database. Returns the reloaded record.
#
# client.materialize("Car")
# c = Car.find_by_Color("Yellow")
# c.reload
def reload
self.class.find(self.Id)
end
```

Thanks