jdaugherty opened a new issue, #342:
URL: https://github.com/apache/grails-intellij-plugin/issues/342
Say we have a domain class in Grails (2.5.6):
```groovy
class Member implements Serializable {
Short type
String name
static namedQueries = {
withNameContaining { name ->
and {
ilike('name', "%${name}%")
}
}
withType { type ->
and {
eq('type', type)
}
}
}
```
Now, by virtue of these "named queries" returning `NamedCriteriaProxy` this
is valid code:
```groovy
def someMembers = Member.withNameContaining('foo').withType('7')
```
Here, IDEA resolves everything just fine.
However, in this:
```groovy
def someMembers = Member.withNameContaining('foo')
someMembers = someMembers.withType('7')
```
IDEA does not resolve `Member.withType`.
---
*Imported from
[IDEA-206171](https://youtrack.jetbrains.com/issue/IDEA-206171) · Type: Bug ·
Votes: 0*
*Comments, attachments, dates and reporter are not part of the export —
follow the link above for the full history.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]