Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.2
-
Fix Version/s: 1.2.3
-
Component/s: Searchable
-
Labels:None
-
Environment:Windows XP, php 5.2.4, Apache 2.0
Description
I am creating a search in such a way that's:
$tenders = Doctrine::getTable('TableTenders');
$tenders->batchUpdateIndex();
after excute i have fatal error: Fatal error: Call to a member function quoteIdentifier() on a non-object in E:\home\tender.loc\www\engine\class\Doctrine\Doctrine\Search.php on line 246
When i am opened Search.php on 246 line, i saw : $conn->quoteIdentifier($this->_table->getTableName())
var_dump($conn) return NULL
I climbed up the code and saw the error: $conn = $this->_options['connection']; (line 228)
i change this on $conn = $this->_options['table']->getConnection();
now works fine
Sory for my english
Thanks for the issue and patch!