You are currently viewing the 1.0 branch api documentation. Switch to 1.1

1.0 Doctrine_Data_Import

Doctrine Data Import

Inheritence

Doctrine_Data_Import  < Doctrine_Data

Method 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