You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Max,
In the meantime I got a glue.
vendor/specialtactics/l5-api/src/Transformers/RestfulTransformer.php
There is the issue
Lines 232 to 234
// We don't really care about pivot information at this stage
if (isset($transformedRelatedModel['pivot'])) {
unset($transformedRelatedModel['pivot']);
}
Its just coded that while transformation it's removed
Bernhard
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?
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.
The text was updated successfully, but these errors were encountered: