Doctrine


Doctrine\ORM\NativeQuery
/Doctrine/ORM/NativeQuery.php at line 28

Class NativeQuery

Class:NativeQuery - Superclass: AbstractQuery
AbstractQuery
⌊ NativeQuery

public final class NativeQuery
extends AbstractQuery

Represents a native SQL query.

Author:
Roman Borschel
Since:
2.0
License:
http://www.opensource.org/licenses/lgpl-license.php LGPL
See Also:
www.doctrine-project.org
Version:
$Revision$

Fields inherited from Doctrine\ORM\AbstractQuery
HYDRATE_ARRAY, HYDRATE_OBJECT, HYDRATE_SCALAR, HYDRATE_SINGLE_SCALAR, _em, _expireResultCache, _hints, _hydrationMode, _paramTypes, _params, _resultCacheDriver, _resultCacheId, _resultCacheTTL, _resultSetMapping, _useResultCache
Method Summary
mixed

getSQL()

Gets the SQL query.

NativeQuery

setSQL(string sql)

Sets the SQL of the query.

Methods inherited from Doctrine\ORM\AbstractQuery
execute, expireResultCache, free, getArrayResult, getEntityManager, getExpireResultCache, getHint, getHydrationMode, getParameter, getParameters, getResult, getResultCacheDriver, getResultCacheLifetime, getSQL, getScalarResult, getSingleResult, getSingleScalarResult, iterate, setHint, setHydrationMode, setParameter, setParameters, setResultCacheDriver, setResultCacheId, setResultCacheLifetime, setResultSetMapping, useResultCache

Method Detail

/Doctrine/ORM/NativeQuery.php at line 50

getSQL

public mixed getSQL()

Gets the SQL query.

Returns:
The built SQL query or an array of all SQL queries.
Override.

/Doctrine/ORM/NativeQuery.php at line 38

setSQL

public NativeQuery setSQL(string sql)

Sets the SQL of the query.

Returns:
This query instance.

Doctrine