Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

random string "has" in code #4024

Closed
genofire opened this issue Jan 29, 2021 · 1 comment
Closed

random string "has" in code #4024

genofire opened this issue Jan 29, 2021 · 1 comment
Assignees
Labels
type:question general questions

Comments

@genofire
Copy link

Your Question

if relation.Type == "has" {

Where come this string "has" from? (and is it used anywhere else
Should it be a const?

The document you expected this should be explained

Expected answer

I make a const 👍 and here are the other places where it is used


I was just reading the your code, because i get a error on nested Preload - which not works, but step with Preload Works ;(

@genofire genofire added the type:question general questions label Jan 29, 2021
@jinzhu jinzhu closed this as completed in 8f37cb0 Feb 1, 2021
@jinzhu
Copy link
Member

jinzhu commented Feb 1, 2021

I make a const 👍 and here are the other places where it is used

Fixed, the "has" is only for internal usage.

I was just reading the your code, because i get a error on nested Preload - which not works, but step with Preload Works ;(

Could you make a reproducible PR for your issue?

mittwillson pushed a commit to itering/gorm that referenced this issue Sep 27, 2021
cgxxv pushed a commit to cgxxv/gorm that referenced this issue Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question general questions
Projects
None yet
Development

No branches or pull requests

2 participants