From 6ff9ee9124cdcb826c4b8278d493076256abf19a Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 19 Jun 2007 10:15:44 +0000 Subject: [PATCH] --- lib/Doctrine/Hook.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/Doctrine/Hook.php b/lib/Doctrine/Hook.php index 843fe5c5a..21ac66c5f 100644 --- a/lib/Doctrine/Hook.php +++ b/lib/Doctrine/Hook.php @@ -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;