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
Describe the proposed solution
In the Sylius\Component\Grid\Data\ExpressionBuilderInterface::in method, the current definition of in is: public function in(string $field, array $values);
This means that you cannot pass a subquery to $values. Additionally, since Sylius\Bundle\GridBundle\Doctrine\ORM\ExpressionBuilder is a final class, you cannot inherit it and add this capability only for your project. It would be beneficial to modify the type of $values from array to array|string so that we can pass the subquery to it.
The text was updated successfully, but these errors were encountered:
Hey @jakubtobiasz,
Thanks for moving it to the right repository. So, what can we do? Should we add it as another method or include it in the next major release?
Describe the proposed solution
In the
Sylius\Component\Grid\Data\ExpressionBuilderInterface::in
method, the current definition ofin
is:public function in(string $field, array $values);
This means that you cannot pass a subquery to
$values
. Additionally, sinceSylius\Bundle\GridBundle\Doctrine\ORM\ExpressionBuilder
is a final class, you cannot inherit it and add this capability only for your project. It would be beneficial to modify the type of$values
fromarray
toarray|string
so that we can pass the subquery to it.The text was updated successfully, but these errors were encountered: