-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Collection & Morphable pivot table support #537
base: 3.x
Are you sure you want to change the base?
Conversation
# Conflicts: # src/Components/Tables/CuratorColumn.php # src/helpers.php
Thanks for the hard work. I will get this tested as soon as I can. |
Any update on this? ie, my review questions? |
What questions? |
@awcodes I could be wrong here, but there is no review on this PR. At least I can't see your questions |
'image_crop_aspect_ratio' => null, | ||
'image_resize_mode' => null, | ||
'image_resize_target_height' => null, | ||
'image_resize_target_width' => null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
Apparently I missed the finish review button. Sorry. |
After a rework of the previous PR, and a fix on issue #529 a fix has been implemented, now supporting pivot morphable table and collections in the pivot table.
in order to use the pivot table users can now set the pivot model in the config file on the key 'intermediate_model', and its value should be the intermediate model class, i.e. MediaItem::class;
The previous got solved. We do not use get_class() anymore, so it cannot be called with integer arguements. Instead a comparisson of types is now used, where we compare the type of the intermediate model set in the config file, and the actual Media class that we fetch from the database.