2008-09-23 06:47:11 +04:00
|
|
|
<?php
|
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
namespace Doctrine\ORM\Query;
|
|
|
|
|
2008-09-23 06:47:11 +04:00
|
|
|
/**
|
|
|
|
* This class is just an intermediate implementation for refactoring purposes
|
2009-01-12 16:34:41 +03:00
|
|
|
* and will be replaced by the ParserResult class of the new DQL parser.
|
2008-09-23 06:47:11 +04:00
|
|
|
*
|
|
|
|
*/
|
2009-01-22 22:38:10 +03:00
|
|
|
class ParserResultDummy
|
2008-09-23 06:47:11 +04:00
|
|
|
{
|
|
|
|
private $_isMixedQuery;
|
|
|
|
private $_dbStatement;
|
|
|
|
private $_isIdentityQuery;
|
|
|
|
private $_hydrationMode;
|
|
|
|
private $_tableToClassAliasMap;
|
|
|
|
private $_queryComponents;
|
|
|
|
|
|
|
|
public function isMixedQuery()
|
|
|
|
{
|
|
|
|
return $this->_isMixedQuery;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function isIdentityQuery()
|
|
|
|
{
|
|
|
|
return $this->_isIdentityQuery;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setMixedQuery($bool)
|
|
|
|
{
|
|
|
|
$this->_isMixedQuery = (bool) $bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getDatabaseStatement()
|
|
|
|
{
|
|
|
|
return $this->_dbStatement;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setDatabaseStatement($stmt)
|
|
|
|
{
|
|
|
|
$this->_dbStatement = $stmt;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getHydrationMode()
|
|
|
|
{
|
|
|
|
return $this->_hydrationMode;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setHydrationMode($hydrationMode)
|
|
|
|
{
|
|
|
|
$this->_hydrationMode = $hydrationMode;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTableToClassAliasMap()
|
|
|
|
{
|
|
|
|
return $this->_tableToClassAliasMap;
|
|
|
|
}
|
2009-01-14 00:56:43 +03:00
|
|
|
|
|
|
|
public function getTableAliasMap()
|
|
|
|
{
|
|
|
|
return $this->_tableToClassAliasMap;
|
|
|
|
}
|
2008-09-23 06:47:11 +04:00
|
|
|
|
|
|
|
public function setTableToClassAliasMap(array $map)
|
|
|
|
{
|
|
|
|
$this->_tableToClassAliasMap = $map;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setQueryComponents(array $queryComponents)
|
|
|
|
{
|
|
|
|
$this->_queryComponents = $queryComponents;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getQueryComponents()
|
|
|
|
{
|
|
|
|
return $this->_queryComponents;
|
|
|
|
}
|
2009-02-20 08:46:20 +03:00
|
|
|
}
|