. */ /** * The SqlBuilder. Creates SQL out of an AST. * * INTERNAL: For platform-specific SQL, the platform of the connection should be used. * ($this->_connection->getDatabasePlatform()) * * @author Guilherme Blanco * @author Janne Vanhala * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link http://www.phpdoctrine.org * @since 2.0 * @version $Revision$ */ class Doctrine_ORM_Query_SqlBuilder { protected $_em; protected $_conn; public function __construct(Doctrine_ORM_EntityManager $em) { $this->_em = $em; $this->_conn = $this->_em->getConnection(); } /** * Retrieves the assocated Doctrine_Connection to this object. * * @return Doctrine_Connection */ public function getConnection() { return $this->_connection; } /** * @nodoc */ public function quoteIdentifier($identifier) { return $this->_conn->quoteIdentifier($identifier); } }