Closed Lonnytunes closed 4 years ago
I built a query looking like this:
$count = $this ->getRunner() ->getQueryBuilder() ->select('...') // ... ->condition((new Where(Where::OR)) // <- Not accepted. ->isNull('...') ->isNull('...') ->isNull('...') ) ->getCountQuery() ->execute() ->fetchField() ;
Giving a new Where object to the condition method results in a QueryError:
Where
condition
QueryError
Goat\Query\QueryError: column reference must be a string or an instance of Goat\Query\ExpressionColumn
The problem comes from ExpressionFactory::column() called at line 119 of Where::condition(). It only accepts string or Expression as argument.
ExpressionFactory::column()
Where::condition()
string
Expression
Cimère Robert !
I built a query looking like this:
Giving a new
Where
object to thecondition
method results in aQueryError
:The problem comes from
ExpressionFactory::column()
called at line 119 ofWhere::condition()
. It only acceptsstring
orExpression
as argument.