symfony API

sfPropelDatabase Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.4 API OpenSearch

Packages

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

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

    Adds configuration for current datasource.

  • (void) connect () Browse code

    Connect to the database.


    Stores the PDO connection in $connection.

  • (array) getConfiguration () Browse code

    Returns the current propel configuration.

  • initialize ($parameters, $name) Browse code

    $parameters The datasource parameters
    $name The datasource name

    Configures a Propel datasource.

  • (array) parseDsn ($dsn) Browse code

    Parses PDO style DSN.

    returns the parsed dsn

  • setConnectionParameter ($key, $value) Browse code

    Sets database configuration parameter

  • setDefaultConfig () Browse code

    Marks the current database as the default.

  • (void) shutdown () Browse code

    Execute the shutdown procedure.