doctrine import debugging
Problems / Solutions
Invalid row key specified: admin_group
The reason was that a class (UllGroup) was defined twice in one fixture file, which is not allowed by yaml.
See http://trac.doctrine-project.org/ticket/1909
Integrity constraint violation: 1048 Column 'foo_bar' cannot be null
Solution?
Notes on the structure of Import.php
plugins/ullCorePlugin/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Data/Import.php
- doImport()
- doParsing()
- loads yaml
- _loadData($arrayFromYamls)
- _buildRows($className, $data)
- build list of importedObjects
- _processRow($rowKey, $row)
- buildFlushTree($objects) (in unitOfWork)
- save objects
- doParsing()