1
0
mirror of synced 2024-12-13 14:56:01 +03:00
This commit is contained in:
zYne 2007-09-29 14:35:30 +00:00
parent e21971d3cb
commit ed64914bda

View File

@ -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);