I am doing query on Opportunity from controller to Access account field detail but i am only getting Account Id not any other field.
[select Id, AccountId, Account.name From Opportunity where id in : OppId]
I am getting
USER_DEBUG [1]|DEBUG|saddsa Get Event(Opportunity:{AccountId=001R000000v6FQbIAM, Id=006R0000009aIxEIAU, RecordTypeId=0120000000097UYAAY, CurrencyIsoCode=USD})
Here i am not getting Account Name while i am getting these value in query editor.
system.debug('----'+objOpportunity.Account.Name);