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

Is there support for pivot custom fields? #78

Open
rela589n opened this issue Jan 14, 2021 · 2 comments
Open

Is there support for pivot custom fields? #78

rela589n opened this issue Jan 14, 2021 · 2 comments

Comments

@rela589n
Copy link

No description provided.

@nikans
Copy link

nikans commented Mar 25, 2021

#45

@le-martre
Copy link

To document this a little further, I was looking for this as well because I needed associated records to be created with default values (JSON fields can't have default values in the DB).

I wanted my ModelA to have 3 ModelB created automatically after being created. So I setup an Observer to listen for the created call and just create them afterwards but despite being able to see them being created in the logs, seeing the DB inserts go through etc, those models were nowhere to be found, they just disappeared.

So if your associated models are disappearing, make sure that you're disabling this package from the create view because the call to the function "sync" that is done in the package will delete any other association you're manually creating. And it's a PAIN to diagnose ahah.

I wanted to write this somewhere in case anybody ended up looking for their disappearing models because I found nothing on Google (pretty logical).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants