Commit 49053d65 authored by jackbravo's avatar jackbravo

Table name may be different than just tablelize class name

For example, for class User, the table name is entity
parent 0de326b5
......@@ -180,7 +180,9 @@ class Doctrine_UnitTestCase extends UnitTestCase
}
public function prepareTables() {
foreach($this->tables as $name) {
$query = 'DROP TABLE ' . Doctrine::tableize($name);
$name = ucwords($name);
$table = $this->connection->getTable($name);
$query = 'DROP TABLE ' . $table->getTableName();
try {
$this->conn->exec($query);
} catch(Doctrine_Connection_Exception $e) {
......
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