0.11 Doctrine_Data
Doctrine Data
Base Doctrine_Data class for dumping and loading data to and from fixtures files. Support formats are based on what formats are available in Doctrine_Parser such as yaml, xml, json, etc.
Direct Sub-Classes
Method Summary
| Returns | Name | Description |
|---|---|---|
| exportData | Interface for exporting data to fixtures files from Doctrine models | |
| bool | exportIndividualFiles | Set/Get whether or not to export individual files |
| getDirectory | Get directory for dumping/loading data from and to | |
| getFormat | Get the current format we are working with | |
| getFormats | Get array of available formats | |
| getModels | Get the array of specified models to work with | |
| importData | Interface for importing data from fixture files to Doctrine models | |
| importDummyData | Interface for importing dummy data to models | |
| isRelation | Check if a fieldName on a Doctrine_Record is a relation, if it is we return that relationData | |
| purge | Purge all data for loaded models or for the passed array of Doctrine_Records | |
| setDirectory | Set the array/string of directories or yml file paths | |
| setFormat | Set the current format we are working with | |
| setModels | Set the array of specified models to work with |
Method Details
-
exportData($directory, $format = 'yml', $models = array(), $_exportIndividualFiles = false)
Interface for exporting data to fixtures files from Doctrine models
-
(bool) exportIndividualFiles($bool = null)
_exportIndividualFiles
Set/Get whether or not to export individual files
-
getDirectory()
Get directory for dumping/loading data from and to
-
getFormat()
Get the current format we are working with
-
getFormats()
Get array of available formats
-
getModels()
Get the array of specified models to work with
-
importData($directory, $format = 'yml', $models = array())
Interface for importing data from fixture files to Doctrine models
-
importDummyData($num = 3, $models = array())
Interface for importing dummy data to models
-
isRelation(( ) $record, $fieldName, $Doctrine_Record)
Check if a fieldName on a Doctrine_Record is a relation, if it is we return that relationData
-
purge($models = null)
Purge all data for loaded models or for the passed array of Doctrine_Records
-
setDirectory($directory)
Set the array/string of directories or yml file paths
-
setFormat($format)
Set the current format we are working with
-
setModels($models)
Set the array of specified models to work with