symfony API

sfPropelData Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.3 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.3 version. Switch to:

This class is the Propel implementation of sfData. It interacts with the data source

Inheritence

sfPropelData  <  sfData

Method Summary

  • doDeleteCurrentData($files)
    Clears existing data from the data source by reading the fixture files
  • dumpData($directoryOrFile, $tables, $connectionName)
    Dumps data to fixture from one or more tables.
  • fixOrderingOfForeignKeyData($classes)
    Fixes the ordering of foreign key data, by outputting data a foreign key depends on before the table with the foreign key.
  • fixOrderingOfForeignKeyDataInSameTable()
  • array getData($tables, $connectionName)
    Returns data from one or more tables.
  • loadData($directoryOrFile, $connectionName)
    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.
  • loadMany2Many($obj, $middleTableName, $values)
    Loads many to many objects.
  • loadMapBuilders()
    Loads all map builders.

Methods inherited from sfData

doLoadData , doLoadDataFromFile , getDeleteCurrentData , getFiles , loadDataFromArray , setDeleteCurrentData

Method Details

  • doDeleteCurrentData ($files) Browse code

    $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

  • dumpData ($directoryOrFile, $tables, $connectionName) Browse code

    $directoryOrFile The directory or file to dump to
    $tables The name or names of tables to dump (or all to dump all tables)
    $connectionName The connection name (default to propel)

    Dumps data to fixture from one or more tables.

  • fixOrderingOfForeignKeyData ($classes) Browse code

    $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.

  • fixOrderingOfForeignKeyDataInSameTable () Browse code

  • (array) getData ($tables, $connectionName) Browse code

    $tables name or names of tables to dump (or all to dump all tables)
    $connectionName connection name

    Returns data from one or more tables.

    returns An array of database data

  • loadData ($directoryOrFile, $connectionName) Browse code

    $directoryOrFile A file or directory path or an array of files or directories
    $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) Browse code

    $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.

  • loadMany2Many ($obj, $middleTableName, $values) Browse code

    $obj A Propel object
    $middleTableName The middle table name
    $values An array of values

    Loads many to many objects.

  • loadMapBuilders () Browse code

    Loads all map builders.

    throws sfException If the class cannot be found