Commit 2c24b003 authored by Jonathan.Wage's avatar Jonathan.Wage

Fixed issue with foreign constraint errors and saving order.

parent 417c361a
......@@ -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) {
......
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