Pt_BR En Ja De Fr 
You are currently viewing the 0.11 branch api documentation. Switch to 1.0 or 1.1

0.11 Doctrine_Data_Import

Doctrine Data Import

Inheritence

Doctrine_Data_Import  < Doctrine_Data

Method Details

  • doImport()

    Do the importing of the data parsed from the fixtures


  • doImportDummyData($num = 3)

    Import dummy data in to the loaded models.


  • (array) doParsing()

    Do the parsing of the yaml files and return the final parsed array


  • populateDummyRecord(( ) $record)

    Populate the passed record with a set of dummy data


  • _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


Comments (0) [ add comment ]

 No Comments

Add Comment

Add New Comment
Please enter follow the doctrine