QueryResult
class QueryResult implements QueryResultInterface (View source)
A lazy result list that is returned by Query::execute()
Properties
protected array | $rows | ||
protected int | $numberOfRows | ||
protected Query | $query |
Methods
Loads the objects this QueryResult is supposed to hold
Returns a clone of the query object
Returns the first object in the result set
Returns the number of objects in the result
Returns an array with the objects in the result set
This method is needed to implement the \ArrayAccess interface, but it isn't very useful as the offset has to be an integer
No description
This method has no effect on the persisted objects but only on the result set
This method has no effect on the persisted objects but only on the result set
No description
No description
No description
No description
No description
Details
__construct(Query $query)
No description
protected void
initialize()
Loads the objects this QueryResult is supposed to hold
QueryInterface
getQuery()
Returns a clone of the query object
object|null
getFirst()
Returns the first object in the result set
int
count()
Returns the number of objects in the result
array
toArray()
Returns an array with the objects in the result set
bool
offsetExists(mixed $offset)
This method is needed to implement the \ArrayAccess interface, but it isn't very useful as the offset has to be an integer
mixed
offsetGet(mixed $offset)
No description
void
offsetSet(mixed $offset, mixed $value)
This method has no effect on the persisted objects but only on the result set
void
offsetUnset(mixed $offset)
This method has no effect on the persisted objects but only on the result set
mixed
current()
No description
mixed
key()
No description
void
next()
No description
void
rewind()
No description
bool
valid()
No description