Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.3
-
Fix Version/s: 1.9.4
-
Component/s: Zend_Test_PHPUnit
-
Labels:None
Description
MySQL database contains InnoDB tables with foreign keys. In XML dataset tables are described in such order, that insertion would go along with existing DB constraints. Method "execute" in "Zend_Test_PHPUnit_Db_Operation_Truncate" class tries to truncate them in same order and fails because of DB constraints. Truncating tables in reverse order would solve the problems as dependent rows would be removed before rows they depend upon.
Changing row 61 in file "Zend/Test/PHPUnit/Db/Operation/Truncate.php" to
foreach ($dataSet->getReverseIterator() as $table)
solved the problem. This applies to Zend Framework release 1.9.3PL1.
Assigning to Ben Eberlei