parent
dbc2f98053
commit
9a0e47a3e1
|
@ -422,6 +422,16 @@ class SimpleQuery implements QueryInterface, Queryable, Iterator
|
|||
return $this->hasMore;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether this query will or has yielded any result
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function hasResult()
|
||||
{
|
||||
return $this->iteratorPosition !== null || $this->fetchRow() !== false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a limit count and offset to the query
|
||||
*
|
||||
|
|
|
@ -367,6 +367,16 @@ class RepositoryQuery implements QueryInterface, SortRules, Iterator
|
|||
return $this->query->hasMore();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether this query will or has yielded any result
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function hasResult()
|
||||
{
|
||||
return $this->query->hasResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* Limit this query's results
|
||||
*
|
||||
|
|
|
@ -433,6 +433,16 @@ abstract class DataView implements QueryInterface, SortRules, IteratorAggregate
|
|||
return $this->query->hasMore();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether this query will or has yielded any result
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function hasResult()
|
||||
{
|
||||
return $this->query->hasResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a limit count and offset
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue