Details
-
Type:
Task
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0-RC1
-
Fix Version/s: None
-
Component/s: Documentation
-
Labels:None
Description
Grails reference documentation doesn't contain any documentation for "createAlias".
Rob has written a nice blog article which explains the usage for querying hasMany associations.
http://adhockery.blogspot.com/2009/06/querying-by-association-redux.html
I hope this information could be added to Grails manual.
createAlias is mentioned in these Jira issues:
http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=project+%3D+GRAILS+AND+(summary+~+createAlias+OR+description+~+createAlias+OR+comment+~+createAlias)
There seems to be several use cases where createAlias should be used.
Issue Links
- relates to
-
GRAILS-7087
hasMany cached association does not return all instances if following a specific criteria Query
-
-
GRAILS-6971
Add Documentation for GORM Criteria Default Alias Generation
-
Another blog article: http://www.intelligrape.com/blog/2011/01/17/grails-criteria-query-createalias-made-it-easy/