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
fb7adbbe
Commit
fb7adbbe
authored
Oct 04, 2009
by
jwage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Added exception if query builder is missing from or select when trying to get dql string
parent
b9ec48d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
QueryBuilder.php
lib/Doctrine/ORM/QueryBuilder.php
+6
-1
No files found.
lib/Doctrine/ORM/QueryBuilder.php
View file @
fb7adbbe
...
...
@@ -21,7 +21,8 @@
namespace
Doctrine\ORM
;
use
Doctrine\ORM\Query\Expr
;
use
Doctrine\ORM\Query\Expr
,
Doctrine\Common\DoctrineException
;
/**
* This class is responsible for building DQL query strings via an object oriented
...
...
@@ -191,6 +192,10 @@ class QueryBuilder
return
$this
->
_dql
;
}
if
(
!
$this
->
_dqlParts
[
'select'
]
||
!
$this
->
_dqlParts
[
'from'
])
{
throw
DoctrineException
::
incompleteQueryBuilder
();
}
$dql
=
''
;
switch
(
$this
->
_type
)
{
...
...
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