1
0
mirror of synced 2025-01-29 19:41:45 +03:00

Merge pull request #98 from asm89/master

[DDC-1301] Fixed tests teardown for mysql suite
This commit is contained in:
Benjamin Eberlei 2011-07-31 02:41:19 -07:00
commit d583b149ac
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class LegacyUser
public $_references;
/**
* @ManyToMany(targetEntity="LegacyCar", inversedBy="_users", cascade={"persist", "merge"})
* @JoinTable(name="legace_users_cars",
* @JoinTable(name="legacy_users_cars",
* joinColumns={@JoinColumn(name="iUserId", referencedColumnName="iUserId")},
* inverseJoinColumns={@JoinColumn(name="iCarId", referencedColumnName="iCarId")}
* )

View File

@ -211,10 +211,11 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
$conn->executeUpdate('DELETE FROM exchange_markets');
}
if (isset($this->_usedModelSets['legacy'])) {
$conn->executeUpdate('DELETE FROM legacy_users_cars');
$conn->executeUpdate('DELETE FROM legacy_users_reference');
$conn->executeUpdate('DELETE FROM legacy_articles');
$conn->executeUpdate('DELETE FROM legacy_cars');
$conn->executeUpdate('DELETE FROM legacy_users');
$conn->executeUpdate('DELETE FROM legacy_users_reference');
}
$this->_em->clear();