1
0
mirror of synced 2025-01-17 22:11:41 +03:00

Fixed some syntax errors on Doctrine Search

This commit is contained in:
jackbravo 2007-09-30 01:18:07 +00:00
parent 01a3e06326
commit 34f527adfc
2 changed files with 5 additions and 5 deletions

View File

@ -121,7 +121,7 @@ class Doctrine_Search
$conn->insert($indexTableName, array('keyword' => $field,
'position' => $pos,
'field' => $field,
'foreign_id' => $identifier);
'foreign_id' => $identifier));
}
}
}

View File

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