You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic: Object maORM from package a cannot be user for has-one in mbORM since it does not have FK field maId defined. Manually define the key, or switch to belongs-to.
#269
Open
floating-yuan opened this issue
Mar 27, 2024
· 0 comments
if I move message ma into b.proto
/model/b/b.proto
package model.b
message ma{
}
message mb{
ma a = 1;
}
that will be ok.
does protoc-gen-gorm support for import the message from other package?
The text was updated successfully, but these errors were encountered:
floating-yuan
changed the title
panic: Object maORM from package common cannot be user for has-one in mbORM since it does not have FK field aId defined. Manually define the key, or switch to belongs-to.
panic: Object maORM from package common cannot be user for has-one in mbORM since it does not have FK field maId defined. Manually define the key, or switch to belongs-to.
Mar 27, 2024
floating-yuan
changed the title
panic: Object maORM from package common cannot be user for has-one in mbORM since it does not have FK field maId defined. Manually define the key, or switch to belongs-to.
panic: Object maORM from package a cannot be user for has-one in mbORM since it does not have FK field maId defined. Manually define the key, or switch to belongs-to.
Mar 27, 2024
this error occurred when b.proto has import a.proto.
/model/a/a.proto
/model/b/b.proto
if I move
message ma
into b.proto/model/b/b.proto
that will be ok.
does protoc-gen-gorm support for import the message from other package?
The text was updated successfully, but these errors were encountered: