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
e5a95bf3
Commit
e5a95bf3
authored
Aug 17, 2009
by
guilhermeblanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] More documentation and fixes to QueryBuilder and Expr classes.
parent
3d17cb0d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
17 deletions
+4
-17
Expr.php
lib/Doctrine/ORM/Query/Expr.php
+0
-5
Base.php
lib/Doctrine/ORM/Query/Expr/Base.php
+1
-1
QueryBuilder.php
lib/Doctrine/ORM/QueryBuilder.php
+3
-11
No files found.
lib/Doctrine/ORM/Query/Expr.php
View file @
e5a95bf3
...
...
@@ -53,11 +53,6 @@ class Expr
return
new
Expr\From
(
$from
,
$alias
);
}
public
static
function
join
(
$joinType
,
$join
,
$alias
=
null
,
$conditionType
=
null
,
$condition
=
null
)
{
return
new
Expr\Join
(
$joinType
,
$join
,
$alias
,
$conditionType
,
$condition
);
}
public
static
function
leftJoin
(
$join
,
$alias
=
null
,
$conditionType
=
null
,
$condition
=
null
)
{
return
new
Expr\Join
(
Expr\Join
::
LEFT_JOIN
,
$join
,
$alias
,
$conditionType
,
$condition
);
...
...
lib/Doctrine/ORM/Query/Expr/Base.php
View file @
e5a95bf3
...
...
@@ -42,7 +42,7 @@ abstract class Base
public
function
__construct
(
$args
=
array
())
{
foreach
(
$args
as
$arg
)
{
foreach
(
(
array
)
$args
as
$arg
)
{
$this
->
add
(
$arg
);
}
}
...
...
lib/Doctrine/ORM/QueryBuilder.php
View file @
e5a95bf3
...
...
@@ -259,19 +259,11 @@ class QueryBuilder
public
function
innerJoin
(
$join
,
$alias
=
null
,
$conditionType
=
null
,
$condition
=
null
)
{
/*$join = 'INNER JOIN ' . $parentAlias . '.' . $join . ' '
. $alias . (isset($condition) ? ' ' . $condition : null);
return $this->add('from', $join, true);*/
return
$this
->
add
(
'from'
,
Expr
::
innerJoin
(
$join
,
$alias
,
$conditionType
,
$condition
),
true
);
}
public
function
leftJoin
(
$join
,
$alias
=
null
,
$conditionType
=
null
,
$condition
=
null
)
{
/*$join = 'LEFT JOIN ' . $parentAlias . '.' . $join . ' '
. $alias . (isset($condition) ? ' ' . $condition : null);
return $this->add('from', $join, true);*/
return
$this
->
add
(
'from'
,
Expr
::
leftJoin
(
$join
,
$alias
,
$conditionType
,
$condition
),
true
);
}
...
...
@@ -310,7 +302,7 @@ class QueryBuilder
return
$this
->
add
(
'where'
,
Expr
::
in
(
$expr
,
$params
),
true
);
}
public
function
orWhereIn
(
$expr
,
$params
=
array
()
,
$not
=
false
)
public
function
orWhereIn
(
$expr
,
$params
=
array
())
{
if
(
count
(
$this
->
_getDqlQueryPart
(
'where'
))
>
0
)
{
$this
->
add
(
'where'
,
'OR'
,
true
);
...
...
@@ -370,12 +362,12 @@ class QueryBuilder
return
$this
->
add
(
'having'
,
Expr
::
having
(
$having
),
true
);
}
public
function
orderBy
(
$sort
,
$order
)
public
function
orderBy
(
$sort
,
$order
=
null
)
{
return
$this
->
add
(
'orderBy'
,
Expr
::
orderBy
(
$sort
,
$order
),
false
);
}
public
function
addOrderBy
(
$sort
,
$order
)
public
function
addOrderBy
(
$sort
,
$order
=
null
)
{
return
$this
->
add
(
'orderBy'
,
Expr
::
orderBy
(
$sort
,
$order
),
true
);
}
...
...
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