symfony API

sfPropelDatabase Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

You are currently browsing the symfony API for the 1.4 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.

A symfony database driver for Propel.

Inheritence

sfPropelDatabase  <  sfPDODatabase < sfDatabase

Method Summary

Methods inherited from sfPDODatabase

connect , shutdown , __call

Methods inherited from sfDatabase

connect , getConnection , getParameter , getParameterHolder , getResource , hasParameter , initialize , setParameter , shutdown , __construct

Method Details

  • addConfig ()

    Adds configuration for current datasource.

  • (void) connect ()

    Connect to the database.


    Stores the PDO connection in $connection.

  • (array) getConfiguration ()

    Returns the current propel configuration.

  • initialize ($parameters, $name)

    $parameters The datasource parameters
    $name The datasource name

    Configures a Propel datasource.

  • (array) parseDsn ($dsn)

    Parses PDO style DSN.

    returns the parsed dsn

  • setConnectionParameter ($key, $value)

    Sets database configuration parameter

  • setDefaultConfig ()

    Marks the current database as the default.

  • (void) shutdown ()

    Execute the shutdown procedure.