-
-
Notifications
You must be signed in to change notification settings - Fork 528
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Cannot define multiple columns within the same table that have the same relationship to another table #218
Comments
Hi there, welcome! The codegen is a little dumb now indeed. Basically, it can't be done with sea-orm/src/tests_cfg/entity_linked.rs Lines 4 to 17 in a6dfb41
Lines 286 to 301 in a6dfb41
See also #89. Oh btw, is that a Battleship game? |
Did that help? |
Sorry for the delayed reply, been a bit busy lately to work on side projects. It looks like exactly what I'm looking for, and I'll give it a shot once I get a chance to work on this (hopefully in the next few days.) Its a PVP statistics tracking system for the MMO Eve online. Thanks for the help! |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hey there, currently migrating one of my projects over from Diesel to take advantage of tokio and I'm running into a problem with one of my tables.
Here is the table in question:
(Irrelevant columns omitted for brevity)
The generated
attackers.rs
entity is generated as so:This looks correct, but EsiTypes is defined twice in the enum which is of course not possible.
As expected, the related implementation for the other table type is also duplicated:
I dug around in the API docs a bit, but I can't seem to find a way to make this schema work. Is there a mechanism to allow this in sea_orm?
The text was updated successfully, but these errors were encountered: