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
It sems setAdditionalSelects only works for fields in main table not related tables. Is this by design or unintentional?
My main issue currently with v2 is how to access fields either not required as main columns or in related tables. Only way I can do this currently is with lots of hidden columns - very messy. I thought setAdditionalSelects might solve the problem, but it doesn't seem to work for related table columns e.g.
$this->setAdditionalSelects(['teams.name as team_name']);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It sems setAdditionalSelects only works for fields in main table not related tables. Is this by design or unintentional?
My main issue currently with v2 is how to access fields either not required as main columns or in related tables. Only way I can do this currently is with lots of hidden columns - very messy. I thought setAdditionalSelects might solve the problem, but it doesn't seem to work for related table columns e.g.
$this->setAdditionalSelects(['teams.name as team_name']);
Beta Was this translation helpful? Give feedback.
All reactions