Commit 34f527ad authored by jackbravo's avatar jackbravo

Fixed some syntax errors on Doctrine Search

parent 01a3e063
...@@ -121,7 +121,7 @@ class Doctrine_Search ...@@ -121,7 +121,7 @@ class Doctrine_Search
$conn->insert($indexTableName, array('keyword' => $field, $conn->insert($indexTableName, array('keyword' => $field,
'position' => $pos, 'position' => $pos,
'field' => $field, 'field' => $field,
'foreign_id' => $identifier); 'foreign_id' => $identifier));
} }
} }
} }
......
...@@ -70,7 +70,7 @@ class Doctrine_Search_TestCase extends Doctrine_UnitTestCase ...@@ -70,7 +70,7 @@ class Doctrine_Search_TestCase extends Doctrine_UnitTestCase
->innerJoin('t.SearchTestIndex i') ->innerJoin('t.SearchTestIndex i')
->where('i.keyword = ?'); ->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'); $this->assertEqual($array[0]['title'], 'Once there was an ORM framework');
} }
...@@ -84,7 +84,7 @@ class Doctrine_Search_TestCase extends Doctrine_UnitTestCase ...@@ -84,7 +84,7 @@ class Doctrine_Search_TestCase extends Doctrine_UnitTestCase
->innerJoin('t.SearchTestIndex i') ->innerJoin('t.SearchTestIndex i')
->where('i.keyword = ? OR i.keyword = ?'); ->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'); $this->assertEqual($array[0]['title'], 'Once there was an ORM framework');
} }
...@@ -98,7 +98,7 @@ class Doctrine_Search_TestCase extends Doctrine_UnitTestCase ...@@ -98,7 +98,7 @@ class Doctrine_Search_TestCase extends Doctrine_UnitTestCase
->innerJoin('t.SearchTestIndex i') ->innerJoin('t.SearchTestIndex i')
->where('i.keyword = ?'); ->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); $this->assertEqual(count($array), 0);
} }
...@@ -112,7 +112,7 @@ class Doctrine_Search_TestCase extends Doctrine_UnitTestCase ...@@ -112,7 +112,7 @@ class Doctrine_Search_TestCase extends Doctrine_UnitTestCase
->innerJoin('t.SearchTestIndex i') ->innerJoin('t.SearchTestIndex i')
->where('i.keyword = ?'); ->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); $this->assertEqual(count($array), 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment