You need to sign in to do that
Don't have an account?
SOQL - quering Parent (Account) to Child (Bonds__r)
Hi,
I am receiving an error in the code provided
Error: Compile Error: unexpected token: return at line 15 column 5
but I'm unsure what is causing it. Can anyone help?
public class AccountExtension {
private final Account BondObj;
public AccountExtension(ApexPages.StandardController controller) {
this.BondObj = (Account)controller.getSubject();
}
public Account[] getSecurities(){
Account[] ab =
[SELECT Name, (SELECT AccVol__c FROM Bonds__r) FROM Account]
return ab;
}
}
==================================================================
Error message ->
Error: Compile Error: unexpected token: return at line 15 column 5
Thanks for any help!