This class is the Propel implementation of sfData. It interacts with the
data source and loads data.
Inheritence
sfPropelData
<
sfData
Method Summary
-
fixOrderingOfForeignKeyDataInSameTable($resultsSets, $tableName, $column, $in = null)
-
loadMapBuilder($class)
Loads the mappings for the classes
-
dumpData($directory_or_file = null, $tables = 'all', $connectionName = 'propel')
Dumps data to fixture from one or more tables.
-
doDeleteCurrentData($fixture_files)
Clears existing data from the data source by reading the fixture files and
deleting the existing data for only those classes that are mentioned in
the fixtures.
-
loadData($directory_or_file = null, $connectionName = 'propel')
Loads data from a file or directory into a Propel data source
-
loadDataFromArray($data)
Implements the abstract loadDataFromArray method and loads the data using
the generated data model.
-
fixOrderingOfForeignKeyData($classes)
Fixes the ordering of foreign key data, by outputting data a foreign key
depends on before the table with the foreign key.
Methods inherited from sfData
doLoadData , getFiles , setDeleteCurrentData , loadDataFromArray , getDeleteCurrentData , doLoadDataFromFile
Method Details
-
fixOrderingOfForeignKeyDataInSameTable ($resultsSets, $tableName, $column, $in = null)
-
loadMapBuilder ($class)
| $class |
The model class name |
Loads the mappings for the classes
throws sfException If the class cannot be found
-
dumpData ($directory_or_file = null, $tables = 'all', $connectionName = 'propel')
| $directory_or_file |
directory or file to dump to |
| $tables |
name or names of tables to dump (or all to dump all tables) |
| $connectionName |
connection name |
Dumps data to fixture from one or more tables.
-
doDeleteCurrentData ($fixture_files)
| $fixture_files |
The list of YAML files. |
Clears existing data from the data source by reading the fixture files and
deleting the existing data for only those classes that are mentioned in
the fixtures.
throws sfException If a class mentioned in a fixture can not be found
-
loadData ($directory_or_file = null, $connectionName = 'propel')
| $directory_or_file |
A file or directory path |
| $connectionName |
The Propel connection name, default 'propel' |
Loads data from a file or directory into a Propel data source
throws Exception If the database throws an error, rollback transaction and rethrows exception
-
loadDataFromArray ($data)
| $data |
The data to be loaded into the data source |
Implements the abstract loadDataFromArray method and loads the data using
the generated data model.
throws Exception If data is unnamed.
-
fixOrderingOfForeignKeyData ($classes)
| $classes |
The array with the class names. |
Fixes the ordering of foreign key data, by outputting data a foreign key
depends on before the table with the foreign key.
|