프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$cacheKeepDuration | The cache duration | ||
$con | |||
$deletedClasses | |||
$dispatcher | |||
$formatter |
메소드 | 설명 | |
---|---|---|
__construct ( $cacheKeepDuration = 7200 ) | ||
dumpData ( string $directoryOrFile, mixed $tables = 'all', string $connectionName = 'propel' ) | Dumps data to fixture from one or more tables. | |
fixOrderingOfForeignKeyData ( array $classes ) | Fixes the ordering of foreign key data, by outputting data a foreign key depends on before the table with the foreign key. | |
getData ( mixed $tables = 'all', string $connectionName = 'propel' ) : array | Returns data from one or more tables. | |
initialize ( sfEventDispatcher $dispatcher, sfFormatter $formatter ) | Initializes the sfPropelData instance. | |
loadData ( mixed $directoryOrFile = null, string $connectionName = 'propel' ) | Loads data from a file or directory into a Propel data source | |
loadDataFromArray ( array $data ) | Implements the abstract loadDataFromArray method and loads the data using the generated data model. | |
log ( $message, $size = null, $style = 'INFO' ) |
메소드 | 설명 | |
---|---|---|
doDeleteCurrentData ( array $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. | |
doLoadDataFromFile ( string $file ) | Loads data for the database from a YAML file | |
fixOrderingOfForeignKeyDataInSameTable ( $resultsSets, $tableName, $column, $in = null ) | ||
loadMany2Many ( BaseObject $obj, string $middleTableName, array $values ) | Loads many to many objects. | |
loadMapBuilders ( $connectionName ) | Loads all map builders for a given connection name |
protected doDeleteCurrentData ( array $files ) | ||
$files | array | The list of YAML files. |
protected doLoadDataFromFile ( string $file ) | ||
$file | string | The path to the YAML file. |
public fixOrderingOfForeignKeyData ( array $classes ) | ||
$classes | array | The array with the class names. |
protected fixOrderingOfForeignKeyDataInSameTable ( $resultsSets, $tableName, $column, $in = null ) |
public initialize ( sfEventDispatcher $dispatcher, sfFormatter $formatter ) | ||
$dispatcher | sfEventDispatcher | A sfEventDispatcher instance |
$formatter | sfFormatter | A sfFormatter instance |
public loadDataFromArray ( array $data ) | ||
$data | array | The data to be loaded into the data source |
protected loadMany2Many ( BaseObject $obj, string $middleTableName, array $values ) | ||
$obj | BaseObject | A Propel object |
$middleTableName | string | The middle table name |
$values | array | An array of values |
protected loadMapBuilders ( $connectionName ) |