1.0 Doctrine_Data_Import
Doctrine Data Import
Inheritence
Doctrine_Data_Import < Doctrine_Data
Method Summary
| Returns | Name | Description |
|---|---|---|
| doImport | ||
| array | doParsing | |
| _buildNestedSetRows | ||
| _buildRows | ||
| _getImportedObject | ||
| _loadData | ||
| _loadNestedSetData | ||
| _processRow | ||
| __construct |
Methods inherited from Doctrine_Data
getFormats , importData , isRelation , getModels , setModels , getFormat , setFormat , exportData , getDirectory , importDummyData , setDirectory , purge , exportIndividualFilesMethod Details
-
doImport($append = false)
Do the importing of the data parsed from the fixtures
-
(array) doParsing()
Do the parsing of the yaml files and return the final parsed array
-
_buildNestedSetRows($className, $data)
Build the rows for nested set models
-
_buildRows($className, $data)
Recursively loop over all data fixtures and build the array of className rows
-
_getImportedObject($rowKey, ( ) $record, $relationName, $referringRowKey)
Get the unsaved object for a specified row key and validate that it is the valid object class for the passed record and relation name
throws Doctrine_Data_Exception
-
_loadData($array)
Perform the loading of the data from the passed array
-
_loadNestedSetData($model, $nestedSetData, $parent = null)
Load nested set data for models with nested set enabled
-
_processRow($rowKey, $row)
Process a row and make all the appropriate relations between the imported data
-
__construct($directory = null)
Optionally pass the directory/path to the yaml for importing