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

Collection & Morphable pivot table support #537

Open
wants to merge 9 commits into
base: 3.x
Choose a base branch
from

Conversation

GeorgeFourkas
Copy link
Contributor

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.

@awcodes
Copy link
Owner

awcodes commented Sep 3, 2024

Thanks for the hard work. I will get this tested as soon as I can.

@awcodes
Copy link
Owner

awcodes commented Oct 18, 2024

Any update on this? ie, my review questions?

@GeorgeFourkas
Copy link
Contributor Author

What questions?

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

Successfully merging this pull request may close these issues.

2 participants