Hydrahon icon indicating copy to clipboard operation
Hydrahon copied to clipboard

Select not working within SubQueries

Open ghost opened this issue 4 years ago • 0 comments

Hello,

When using the subquery in the developer branch there seems to be an issue with the select function.

for example:

$ret = $builder->select(["a" => function ($q) {
    $q->table("table2");
    $q->select(["column1", "column2"]);
});

Returns: There is no macro or method with the name "select" registered.

However as a workaround, if select is changed to fields it works fine, is this intended?

Kind Regards, Joe

ghost avatar Feb 01 '21 12:02 ghost