From ed64914bdae7d77e33232aa019dbb8ad4d79fb3d Mon Sep 17 00:00:00 2001 From: zYne Date: Sat, 29 Sep 2007 14:35:30 +0000 Subject: [PATCH] --- lib/Doctrine/Template/Searchable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Template/Searchable.php b/lib/Doctrine/Template/Searchable.php index 25c289953..038171e24 100644 --- a/lib/Doctrine/Template/Searchable.php +++ b/lib/Doctrine/Template/Searchable.php @@ -51,7 +51,7 @@ class Doctrine_Template_Searchable extends Doctrine_Template $this->_search->buildDefinition($this->_table); foreach ((array) $id as $column) { - $foreign[] = strtolower($this->_table->getComponentName() . '_' . $column); + $foreign[] = strtolower(Doctrine::tableize($this->_table->getComponentName()) . '_' . $column); } $foreign = (count($foreign) > 1) ? $foreign : current($foreign);