/** * constructor * * @param Doctrine_Query $query */ public function __construct(Doctrine_Query $query, $viewName) { $this->name = $viewName; $this->query = $query; $this->query->setView($this); $this->conn = $query->getConnection(); }
/** * constructor * * @param Doctrine_Query $query */ public function __construct(Doctrine_Query $query, $viewName) { $this->_name = $viewName; $this->_query = $query; $this->_query->setView($this); $this->_conn = $query->getConnection(); $this->_dql = $query->getDql(); $this->_sql = $query->getSqlQuery(); }