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
6ff9ee91
Commit
6ff9ee91
authored
Jun 19, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
7aa35b7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Hook.php
lib/Doctrine/Hook.php
+7
-4
No files found.
lib/Doctrine/Hook.php
View file @
6ff9ee91
...
...
@@ -130,7 +130,7 @@ class Doctrine_Hook
if
(
count
(
$e
)
==
2
)
{
list
(
$alias
,
$column
)
=
$e
;
/**
$tableAlias = $this->query->getTableAlias($alias);
$map = $this->query->getAliasDeclaration($alias);
$table = $map['table'];
...
...
@@ -140,6 +140,8 @@ class Doctrine_Hook
}
if ($def = $table->getDefinitionOf($column)) {
*/
$def
[
0
]
=
gettype
(
$value
);
if
(
isset
(
$this
->
typeParsers
[
$def
[
0
]]))
{
$name
=
$this
->
typeParsers
[
$def
[
0
]];
$parser
=
new
$name
;
...
...
@@ -148,7 +150,7 @@ class Doctrine_Hook
$parser
->
parse
(
$alias
,
$column
,
$value
);
$this
->
query
->
addWhere
(
$parser
->
getCondition
(),
$parser
->
getParams
());
}
//
}
}
}
...
...
@@ -180,14 +182,15 @@ class Doctrine_Hook
if
(
count
(
$e
)
==
2
)
{
list
(
$alias
,
$column
)
=
$e
;
/**
$tableAlias = $this->query->getTableAlias($alias);
$map = $this->query->getAliasDeclaration($alias);
$table = $map['table'];
if ($def = $table->getDefinitionOf($column)) {
*/
$this
->
query
->
addOrderBy
(
$alias
.
'.'
.
$column
.
' '
.
$order
);
}
//
}
}
}
return
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