Development 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 Details
-
getFormats()
Get array of available formats
-
importData($directory, $format = 'yml', $models = array())
Interface for importing data from fixture files to Doctrine models
-
isRelation(( ) $record, $fieldName, $Doctrine_Entity)
Check if a fieldName on a Doctrine_Entity is a relation, if it is we return that relationData
-
getModels()
Get the array of specified models to work with
-
setModels($models)
Set the array of specified models to work with
-
getFormat()
Get the current format we are working with
-
setFormat($format)
Set the current format we are working with
-
exportData($directory, $format = 'yml', $models = array(), $_exportIndividualFiles = false)
Interface for exporting data to fixtures files from Doctrine models
-
getDirectory()
Get directory for dumping/loading data from and to
-
importDummyData($num = 3, $models = array())
Interface for importing dummy data to models
-
setDirectory($directory)
Set the array/string of directories or yml file paths
-
purge($models = array())
Purge all data for loaded models or for the passed array of Doctrine_Entitys
-
(bool) exportIndividualFiles($bool = null)
_exportIndividualFiles
Set/Get whether or not to export individual files




Comments (0) [ add comment ]
No Comments
Add Comment