Skip to content

Changing HasMany("Bottles","Bottle") into HasOne("Bottle") creates compiler error #1

@Gys

Description

@Gys

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 ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions