Add support for belongs to relationships #2409

Open
YakoYakoYokuYoku wants to merge 1 commits from YakoYakoYokuYoku/xorm:belongsto into v1
First-time contributor

As seen in #41. This is a requirement for one-to-many relationships. In the future I intend to add support for hasone and hasmany. I decided not to use underscores because other packages such as encoding/json or github.com/pelletier/go-toml/v2 do everything in lower case and no separation of words. The rest works as described in this comment.

As seen in #41. This is a requirement for one-to-many relationships. In the future I intend to add support for `hasone` and `hasmany`. I decided not to use underscores because other packages such as `encoding/json` or `github.com/pelletier/go-toml/v2` do everything in lower case and no separation of words. The rest works as described in [this comment](https://gitea.com/xorm/xorm/issues/41#issuecomment-52865).
YakoYakoYokuYoku added 1 commit 2024-02-09 17:02:36 +00:00
Support for belongs to relationships
Some checks failed
test cockroach / test cockroach (pull_request) Has been cancelled
test mariadb / test mariadb (pull_request) Has been cancelled
test mssql / test mssql with collation (pull_request) Has been cancelled
test mssql / test mssql (pull_request) Has been cancelled
test mysql / test mysql (pull_request) Has been cancelled
test mysql8 / test mysql8 (pull_request) Has been cancelled
test postgres / test postgres (pull_request) Has been cancelled
test sqlite / unit test & test sqlite (pull_request) Has been cancelled
test tidb / test tidb (pull_request) Has been cancelled
8826dcbb1d
Owner

Can you work based on #2241?

Can you work based on #2241?
Some checks failed
test cockroach / test cockroach (pull_request) Has been cancelled
Required
Details
test mariadb / test mariadb (pull_request) Has been cancelled
Required
Details
test mssql / test mssql with collation (pull_request) Has been cancelled
Required
Details
test mssql / test mssql (pull_request) Has been cancelled
Required
Details
test mysql / test mysql (pull_request) Has been cancelled
Required
Details
test mysql8 / test mysql8 (pull_request) Has been cancelled
Required
Details
test postgres / test postgres (pull_request) Has been cancelled
Required
Details
test sqlite / unit test & test sqlite (pull_request) Has been cancelled
Required
Details
test tidb / test tidb (pull_request) Has been cancelled
Required
Details
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u belongsto:YakoYakoYokuYoku-belongsto
git checkout YakoYakoYokuYoku-belongsto
Sign in to join this conversation.
No description provided.