I want to ask if there is any potential downfall of creating object in apex with Id that I would get from SOQL on diffrent object?
Pseudo code
SELECT Id, Foo__r.Id, Foo__r.Name from Bar__c
Foo__c oldFoo = new Foo__c();
oldFoo.Id = Foo__r.Id;
oldFoo.Name = 'NewName';
update oldFoo; // it works!
Something inside me is screaming that it's not good idea but it would be great to use it as I'll be conserving some SOQLs.