relation

package
v0.0.0-...-8aeec60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PostsWithAuthor = model.RelationHasOne(func(m *models.Posts) uint64 {
	return m.PostAuthor
}, func(p *models.Users) uint64 {
	return p.Id
}, func(m *models.Posts, p *models.Users) {
	m.Author = p
}, model.Relationship{
	RelationType: model.HasOne,
	Table:        "wp_users user",
	ForeignKey:   "ID",
	Local:        "post_author",
})

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL