GORM method save is not recognized
Answered
When creating a Grails 3 project via the command line and importing it as a Gradle project in IntelliJ some GORM methods are not recognized.
This seems to affect all CRUD based methods. All I get is a warning that the symbol is not resolvable.
I am using Intellij 2016.1.2 with Grails 3.1.6, and the domain class is defined as a Groovy class.
The warning message I get is:
Cannot resolve symbol 'save'
The project is imported as a Gradle project since it's the build tool they are using now. Grails is added as a Framework support and the Grails SDK is selected. The application compiles, builds and assembles correctly.
Please sign in to leave a comment.
https://drive.google.com/open?id=0B2uF2RgYyUNHTGVMVzJIVlIzb0U
Here's a link to an example project.
Planned for 2016.2: https://youtrack.jetbrains.com/issue/IDEA-152230.
OK. Thanks! Nice to know :)