/** * Constructor. * * @param Doctrine_Connection The connection object the query will use. * @param Doctrine_Hydrator_Abstract The hydrator that will be used for generating result sets. */ public function __construct(Doctrine_Connection $connection = null, Doctrine_Hydrator_Abstract $hydrator = null) { parent::__construct($connection, $hydrator); if (function_exists('dql_tokenize_query')) { //@todo is this a good name for this ? $this->_tokenizer = new myDoctrineQueryTokenizer(); } }
/** * Overwritten constructor from Doctrine_Query_Abstract to initialize * some objects we need here * @param Doctrine_Connection $connection * @param Doctrine_Hydrator_Abstract $hydrator */ public function __construct(Doctrine_Connection $connection = null, Doctrine_Hydrator_Abstract $hydrator = null) { parent::__construct($connection, $hydrator); $this->filterChain = new IcingaDoctrineQueryFilterChain(); }