1
0
Fork 0
mirror of synced 2025-03-30 11:40:15 +03:00

Fixed issue with foreign constraint errors and saving order.

This commit is contained in:
Jonathan.Wage 2007-11-16 22:27:28 +00:00
parent 417c361abc
commit 2c24b00385

View file

@ -200,13 +200,14 @@ class Doctrine_Data_Import extends Doctrine_Data
$this->_processRow($rowKey, $row); $this->_processRow($rowKey, $row);
} }
$objects = array();
foreach ($this->_importedObjects as $object) {
$className = get_class($object);
$objects[$className] = $className;
}
$manager = Doctrine_Manager::getInstance(); $manager = Doctrine_Manager::getInstance();
foreach ($manager as $connection) { foreach ($manager as $connection) {
$objects = array();
foreach ($this->_importedObjects as $object) {
$objects[] = get_class($object);
}
$tree = $connection->unitOfWork->buildFlushTree($objects); $tree = $connection->unitOfWork->buildFlushTree($objects);
foreach ($tree as $model) { foreach ($tree as $model) {