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

WithPivot removed during transformation #71

Open
DrRamazzotti opened this issue Jan 14, 2024 · 3 comments
Open

WithPivot removed during transformation #71

DrRamazzotti opened this issue Jan 14, 2024 · 3 comments
Assignees

Comments

@DrRamazzotti
Copy link

I have a many to many relation with additional fields.

It works fine until I try to query a item or collection with additional fields.

Return the "pure" raw item the additional pivot fields are there.

Using return $this->response->item($company, $this->getTransformer()); the additional fields wont appear.

@specialtactics
Copy link
Owner

Hey @DrRamazzotti could you please provide some code examples of your models and the route you are calling?

@DrRamazzotti
Copy link
Author

DrRamazzotti commented Feb 13, 2024 via email

@specialtactics
Copy link
Owner

Hey @DrRamazzotti - happy to work on this, but can you give me some examples of how you are using pivots? Can you post some example models and a controller code and what you expect?

@specialtactics specialtactics self-assigned this Jul 17, 2024
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