Skip to content

v1.2.8

Compare
Choose a tag to compare
@erizocosmico erizocosmico released this 13 Jun 09:51
· 125 commits to master since this release

Bug fixes

  • Allow circular dependencies in schema generation for self references and inverse relationships.
  • Virtual columns were not being correctly taken into account for inserts and updates, so you could not have a relationship without an explicit inverse in the child.
    For example, this code works now:
type Parent struct {
  kallax.Model
  ID int64
  Child *Child
}

type Child struct {
  kallax.Model
  ID int64
}

Before it was required that Child had a:

Parent *Parent `fk:",inverse"`