symfony API

sfDoctrineDatabase 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:

A symfony database driver for Doctrine.

Inheritence

sfDoctrineDatabase  <  sfDatabase

Method Summary

  • void connect()
    Initializes the connection and sets it to object.
  • Doctrine_Connection getDoctrineConnection()
    Get the Doctrine_Connection instance.
  • sfDoctrineConnectionProfiler|null getProfiler()
    Returns the connection profiler.
  • void initialize($parameters)
    Initialize a sfDoctrineDatabase connection with the given parameters.
  • void shutdown()
    Execute the shutdown procedure.

Methods inherited from sfDatabase

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

Method Details

  • (void) connect () Browse code

    Initializes the connection and sets it to object.

  • (Doctrine_Connection) getDoctrineConnection () Browse code

    Get the Doctrine_Connection instance.

    returns $conn

  • (sfDoctrineConnectionProfiler|null) getProfiler () Browse code

    Returns the connection profiler.

  • (void) initialize ($parameters) Browse code

    $parameters Array of parameters used to initialize the database connection

    Initialize a sfDoctrineDatabase connection with the given parameters.



    $parameters = array(
    'name' => 'doctrine',
    'dsn' => 'sqlite:////path/to/sqlite/db');

    $p = new sfDoctrineDatabase($parameters);

  • (void) shutdown () Browse code

    Execute the shutdown procedure.