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
What happens:
In QueryBuilder:fixTree() method there is a section where the code is choosing the "to be selected" columns. This line raises an issue for us since our Entity requires an extra column to be selected or else the fix tree will fail when trying to load nodes in the next lines.
publicfunction fixTree($root = null)
{
$columns = [
$this->model->getKeyName(),
$this->model->getParentIdName(),
$this->model->getLftName(),
$this->model->getRgtName(),
'cloud_id', // <--- our model needs this cloud id to be properly loaded in case of passive caching
];
Expected Behavior:
The solution is rather simple. Just allow selecting extra columns as optional. No extra change is needed:
What happens:
In QueryBuilder:fixTree() method there is a section where the code is choosing the "to be selected" columns. This line raises an issue for us since our Entity requires an extra column to be selected or else the fix tree will fail when trying to load nodes in the next lines.
Expected Behavior:
The solution is rather simple. Just allow selecting extra columns as optional. No extra change is needed:
Here is the solution:
This would solve our issue and possibly any other code that has multiple clouds.
Thanks.
cc: @pultho
The text was updated successfully, but these errors were encountered: