This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Gyus,
I have by default eager loading turned off, and in one perticular scenario i know that i will need to load up an object + 2 objects lists, I have two aggregates AllLoans and AllProperties, I can't seem to find a way of running a query with both of them at once. My code looks like this: How can i define multiple aggregates? Thanks Again, Josh |
|
|
You can apply multiple aggregates to an association, but not to a query. The association is eager-loaded if the query matches any of the aggregates defined on the association. Therefore, although you can't do what you want directly, the workaround is to define a combined aggregate, e.g. "AllLoansAndAllProperties," and apply both AllLoans and AllLoansAndAllProperties to the Loans association. We're aware that it would be neater to allow a query to specify multiple aggregates -- we have a feature request outstanding for this and I've bumped the priority to reflect your request. |
|
|
+1 Vote for allowing multiple aggregates on a query... |
|