symfony API

sfPropelData Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

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

Inheritence

sfPropelData  <  sfData

Method Summary

Methods inherited from sfData

doLoadData , doLoadDataFromFile , getDeleteCurrentData , getFiles , loadDataFromArray , setDeleteCurrentData

Method Details

  • doDeleteCurrentData () Browse code

    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 (, , ) Browse code

    Dumps data to fixture from one or more tables.

  • fixOrderingOfForeignKeyData () Browse code

    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

  • loadData (, ) Browse code

    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 () Browse code

    Implements the abstract loadDataFromArray method and loads the data using the generated data model.

    throws Exception If data is unnamed.

  • loadMapBuilder () Browse code

    Loads the mappings for the classes

    throws sfException If the class cannot be found