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

User pivot jsonable fields not editables #15

Open
damsfx opened this issue Apr 17, 2023 · 1 comment
Open

User pivot jsonable fields not editables #15

damsfx opened this issue Apr 17, 2023 · 1 comment

Comments

@damsfx
Copy link

damsfx commented Apr 17, 2023

On the User controller, awards can be added to pivot data with

1 - "Pivot model" tab :
Adding pivot data (awards) work's well, the data are present in DB; but when editing them the repeater field is not filed.

2 - "Pivot data" tab :
Throw an error "Unexpected type of array when attempting to save attribute "awards", try adding it to the $jsonable property." on line 824 of ...\vendor\winter\storm\src\Database\Model.php.

Additional question:
Is it possible to edit role data and pivot model data in the same pop-up?

@bennothommo
Copy link
Member

bennothommo commented May 5, 2023

@damsfx sorry for the delay in responding.

My understanding is pivot data is still not fully supported in a fair few core functions. I always find it more reliable to modify the intermediate models directly if I need to store "pivot data", rather than relying on pivot data functionality in Winter/Laravel.

That being said, we'll look into your example above and have a look at the difference there.

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

2 participants