getting an object from its instance id
Posted: Tue Jul 09, 2013 9:37 am
If you know the class of an object and you have its instance id, is there a better way to get the object than this?
I expected a method like Class::getInstance(id : Decimal) : InstanceType; to exist but I can't see one.
Code: Select all
user := (User.number.String & "." & id.String).asObject.User;