How to approach multiple entities depending on single model #475
Unanswered
michalvankodev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Let's say we have a scenario where
ModelA
has a foreign key toModelCommon
andModelB
also has this property.ModelA
andModelB
are not related with each other.Both
ModelA
andModelB
have their own separate seeder but I wantModelCommon
seeder to run only once.There is much more similar situations for managing foreign keys but the documentation is lacking around this topic.
Beta Was this translation helpful? Give feedback.
All reactions