function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vijaynvijayn 

ASF queries with relationships in query

Hi all,

Is using relationships in SOQL supported in ASF?

I am trying something like this and ASF seems to be stripping out the relationship name.
    @list = MyCustomObject.find(:all, :conditions => ["MyCustomRelationship__r.Name = 'foo'"])

Note:
SELECT Id, owner.Name, Name,  Title__c, Description__c FROM MyCustomObject__c WHERE (MyCustomRelationship__r.Name = 'foo') works, but  the above results in:

SELECT Id, owner.Name, Name,  Title__c, Description__c FROM MyCustomObject__c WHERE (Name = 'foo')


If not, is there a way to do this? does ASF support :join?

Vijay


Message Edited by vijayn on 12-09-2008 11:32 AM