Grails:getAll没有抛出方法异常的签名?

Grails:getAll没有抛出方法异常的签名?,grails,gorm,Grails,Gorm,根据圣杯文献 我应该能做到这一点 def biweeklyBatchRanges = BiweeklyBatchRange.getAll() 没有得到这个 groovy.lang.MissingMethodException: No signature of method: com.myplang.donation.BiweeklyBatchRange.getAll() is applicable for argument types: () values: [] Possible

根据圣杯文献

我应该能做到这一点

 def biweeklyBatchRanges = BiweeklyBatchRange.getAll()
没有得到这个

    groovy.lang.MissingMethodException: No signature of method: com.myplang.donation.BiweeklyBatchRange.getAll() is applicable for argument types: () values: []
Possible solutions: getAll(), getAt(java.lang.String), getId(), get(java.io.Serializable), getClass(), findAll()

有什么想法吗?蒂亚

除了使用findAll之外,从未得到过这个问题的“答案”。(Grails2.0.3)

getAll([1,2,3])是否按预期工作?您已链接到2.0的文档。您正在使用Grails2.0吗?或者可能是更早的版本?我也有同样的问题,看起来有点神经质。尝试使用findAll。我使用的是2.0.3。芬德尔成功了。谢谢你,马科!