diff --git a/lib/Doctrine/Search.php b/lib/Doctrine/Search.php index faa73cc0c..aab12003f 100644 --- a/lib/Doctrine/Search.php +++ b/lib/Doctrine/Search.php @@ -121,7 +121,7 @@ class Doctrine_Search $conn->insert($indexTableName, array('keyword' => $field, 'position' => $pos, 'field' => $field, - 'foreign_id' => $identifier); + 'foreign_id' => $identifier)); } } } diff --git a/tests/SearchTestCase.php b/tests/SearchTestCase.php index 3bdd80a04..977f18811 100644 --- a/tests/SearchTestCase.php +++ b/tests/SearchTestCase.php @@ -70,7 +70,7 @@ class Doctrine_Search_TestCase extends Doctrine_UnitTestCase ->innerJoin('t.SearchTestIndex i') ->where('i.keyword = ?'); - $array = $q->execute(array('orm'), Doctrine_Hydrate::HYDRATE_ARRAY); + $array = $q->execute(array('orm'), Doctrine::HYDRATE_ARRAY); $this->assertEqual($array[0]['title'], 'Once there was an ORM framework'); } @@ -84,7 +84,7 @@ class Doctrine_Search_TestCase extends Doctrine_UnitTestCase ->innerJoin('t.SearchTestIndex i') ->where('i.keyword = ? OR i.keyword = ?'); - $array = $q->execute(array('orm', 'framework'), Doctrine_Hydrate::HYDRATE_ARRAY); + $array = $q->execute(array('orm', 'framework'), Doctrine::HYDRATE_ARRAY); $this->assertEqual($array[0]['title'], 'Once there was an ORM framework'); } @@ -98,7 +98,7 @@ class Doctrine_Search_TestCase extends Doctrine_UnitTestCase ->innerJoin('t.SearchTestIndex i') ->where('i.keyword = ?'); - $array = $q->execute(array('was'), Doctrine_Hydrate::HYDRATE_ARRAY); + $array = $q->execute(array('was'), Doctrine::HYDRATE_ARRAY); $this->assertEqual(count($array), 0); } @@ -112,7 +112,7 @@ class Doctrine_Search_TestCase extends Doctrine_UnitTestCase ->innerJoin('t.SearchTestIndex i') ->where('i.keyword = ?'); - $array = $q->execute(array('someunknownword'), Doctrine_Hydrate::HYDRATE_ARRAY); + $array = $q->execute(array('someunknownword'), Doctrine::HYDRATE_ARRAY); $this->assertEqual(count($array), 0); }