symfony API

sfPDODatabase Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to API menu


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.

sfPDODatabase provides connectivity for the PDO database abstraction layer.


sfPDODatabase  <  sfDatabase

Method Summary

  • connect()
    Connects to the database.
  • void shutdown()
    Executes the shutdown procedure.

Methods inherited from sfDatabase

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

Method Details

  • connect ()

    Connects to the database.

    throws sfDatabaseException If a connection could not be created

  • (void) shutdown ()

    Executes the shutdown procedure.

    throws sfDatabaseException If an error occurs while shutting down this database