ForwardCompatibleQueryResultInterface

interface \TYPO3\CMS\Extbase\Persistence\ForwardCompatibleQueryResultInterface

Extends
QueryResultInterface

Helper interface for v11 DI to see if a QueryResult can be autowired, or if a fallback to ObjectManager needs to be done.

Deprecated

since v11, will be merged into QueryResultInterface in v12.

Table of Contents

Methods

getFirst()  : object|null
Returns the first object in the result set
getQuery()  : QueryInterface
Returns a clone of the query object
setQuery()  : void
toArray()  : array
Returns an array with the objects in the result set

Methods

getFirst()

Returns the first object in the result set

public getFirst() : object|null

Return values

object|null

toArray()

Returns an array with the objects in the result set

public toArray() : array

Return values

array
On this page