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
I need count query, but I can't use in write function because ColumnQuery class doesn't implement from QueryInterface.
And count function returned ColumnQuery instance.
Error : ilPortugues\Sql\QueryBuilder\Builder\GenericBuilder::write(): Argument #1 ($query) must be of type NilPortugues\Sql\QueryBuilder\Manipulation\QueryInterface, NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery given
How can I resolve this?
The text was updated successfully, but these errors were encountered:
Hi
I need count query, but I can't use in write function because
ColumnQuery
class doesn't implement fromQueryInterface
.And count function returned
ColumnQuery
instance.`
$query = $builder->select()
->setTable('users')
->count()
echo $builder->write($query);
`
Error :
ilPortugues\Sql\QueryBuilder\Builder\GenericBuilder::write(): Argument #1 ($query) must be of type NilPortugues\Sql\QueryBuilder\Manipulation\QueryInterface, NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery given
How can I resolve this?
The text was updated successfully, but these errors were encountered: