I am new to Goa and Gorma and experimenting with this gorma-cellar example. If I understand correctly, then it should be possible to change this line
https://github.com/goadesign/gorma-cellar/blob/master/design/models.go#L20
HasMany("Bottles","Bottle")
into:
HasOne("Bottle")
But doing so results in a compiler error:
models/bottle.go:41: invalid recursive type Bottle
Does this mean HasOne() has a bug ? Or is using Gorma not that easy ;-)