v1.2.8
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"`