From f1653229eeac346e494a613439ba256c1998a126 Mon Sep 17 00:00:00 2001 From: jepso Date: Mon, 10 Dec 2007 20:40:06 +0000 Subject: [PATCH] fixed new dql parser test script --- draft/test.php | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/draft/test.php b/draft/test.php index d968f58e6..5f183b078 100644 --- a/draft/test.php +++ b/draft/test.php @@ -1,19 +1,30 @@ parse();*/ - $scanner = new Doctrine_Query_Scanner('SELECT u.name, u.age FROM User u WHERE u.id = ?'); - do { - $token = $scanner->scan(); - } while ($token['type'] !== Doctrine_Query_Token::T_EOS); - + $parser = new Doctrine_Query_Parser('SELECT u.name, u.age FROM User u WHERE u.id = ?'); + $parser->parse(); } $end = microtime(true);