getResult($hydrationMode = self::HYDRATE_OBJECT)
Retrieve a collection
getSingleResult($hydrationMode = null)
Retrieve a single result or exception
getOneOrNullResult($hydrationMode = null)
Retrieve a result or NULL
getArrayResult()
Retrieve an array
getScalarResult()
Retrieves a flat/rectangular result set of scalar values
getSingleScalarResult()
Retrieves a single scalar value or exception
AbstractQuery::HYDRATE_OBJECT
Object graph default
AbstractQuery::HYDRATE_ARRAY
Array graph
AbstractQuery::HYDRATE_SCALAR
Flat rectangular result with scalars
AbstractQuery::HYDRATE_SINGLE_SCALAR
Single scalar value
AbstractQuery::HYDRATE_SIMPLEOBJECT
Very simple object fast
setCacheMode($cacheMode)
Cache::MODE_GET
may read, not write
Cache::MODE_PUT
no read, write all
Cache::MODE_NORMAL
read and write
Cache::MODE_REFRESH
no read, only refresh
setCacheable($trueFalse)
Enable/disable result caching
Comments