1
0
mirror of synced 2025-01-18 06:21:40 +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);
}
$objects = array();
foreach ($this->_importedObjects as $object) {
$className = get_class($object);
$objects[$className] = $className;
}
$manager = Doctrine_Manager::getInstance();
foreach ($manager as $connection) {
$objects = array();
foreach ($this->_importedObjects as $object) {
$objects[] = get_class($object);
}
foreach ($manager as $connection) {
$tree = $connection->unitOfWork->buildFlushTree($objects);
foreach ($tree as $model) {