Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
2195894a
Commit
2195894a
authored
Dec 31, 2009
by
guilhermeblanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Added support to complex PathExpression in DQL queries
parent
3928ba9d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
36 deletions
+0
-36
Parser.php
lib/Doctrine/ORM/Query/Parser.php
+0
-17
LanguageRecognitionTest.php
tests/Doctrine/Tests/ORM/Query/LanguageRecognitionTest.php
+0
-19
No files found.
lib/Doctrine/ORM/Query/Parser.php
View file @
2195894a
...
...
@@ -94,13 +94,6 @@ class Parser
*/
private
$_em
;
/**
* The Abtract Syntax Tree of processed DQL query.
*
* @var SelectStatement | UpdateStatement | DeleteStatement
*/
private
$_ast
;
/**
* The Query to parse.
*
...
...
@@ -201,16 +194,6 @@ class Parser
return
$this
->
_em
;
}
/**
* Gets the Abstract Syntax Tree generated by the parser.
*
* @return SelectStatement | UpdateStatement | DeleteStatement
*/
public
function
getAST
()
{
return
$this
->
_ast
;
}
/**
* Registers a custom function that returns strings.
*
...
...
tests/Doctrine/Tests/ORM/Query/LanguageRecognitionTest.php
View file @
2195894a
...
...
@@ -59,25 +59,6 @@ class LanguageRecognitionTest extends \Doctrine\Tests\OrmTestCase
return
$parser
->
parse
();
}
public
function
parseDqlForAST
(
$dql
,
$hints
=
array
())
{
$query
=
$this
->
_em
->
createQuery
(
$dql
);
$query
->
setHint
(
Query
::
HINT_FORCE_PARTIAL_LOAD
,
true
);
$query
->
setDql
(
$dql
);
foreach
(
$hints
as
$key
=>
$value
)
{
$query
->
setHint
(
$key
,
$value
);
}
$parser
=
new
\Doctrine\ORM\Query\Parser
(
$query
);
// We do NOT test SQL output here. That only unnecessarily slows down the tests!
$parser
->
setCustomOutputTreeWalker
(
'Doctrine\Tests\Mocks\MockTreeWalker'
);
$parser
->
parse
();
return
$parser
->
getAST
();
}
public
function
testEmptyQueryString
()
{
$this
->
assertInvalidDql
(
''
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment