fix load fixture array in an object field

This commit is contained in:
jaugustin 2012-12-21 15:07:27 +01:00
parent 26596d1df4
commit eb87d37d7b

View file

@ -178,7 +178,7 @@ abstract class AbstractDataLoader extends AbstractDataHandler implements DataLoa
} catch (PropelException $e) {
// Check whether this is actually an array stored in the object.
if ('Cannot fetch TableMap for undefined table: '.substr($name, 0, -1) === $e->getMessage()) {
if ('ARRAY' !== $tableMap->getColumn($name)->getType()) {
if ('ARRAY' !== $tableMap->getColumn($name)->getType() && 'OBJECT' !== $tableMap->getColumn($name)->getType()) {
throw $e;
}
}