Pt_BR En Ja De Fr 
You are currently viewing the 0.11 branch api documentation. Switch to 1.0

0.11 Doctrine_Adapter_Mysqli

Doctrine Adapter Mysqli

Custom Doctrine connection adapter for mysqli

Method Summary

Returns Name Description
closeConnection
integer lastInsertId Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column. As a convention, on RDBMS brands that support sequences (e.g. Oracle, PostgreSQL, DB2), this method forms the name of a sequence from the arguments and returns the last id gen
Doctrine_Statement_Mysqli prepare
_beginTransaction
_commit
_connect
_rollBack

Method Details

  • closeConnection()

    Force the connection to close.


  • $tableName OPTIONAL Name of table.
    $primaryKey OPTIONAL Name of primary key column.

    (integer) lastInsertId($tableName = null, $primaryKey = null)

    Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.
    As a convention, on RDBMS brands that support sequences (e.g. Oracle, PostgreSQL, DB2), this method forms the name of a sequence from the arguments and returns the last id gen


  • $sql SQL query

    (Doctrine_Statement_Mysqli) prepare($sql)

    Prepare a statement and return a PDOStatement-like object.


  • _beginTransaction()

    Begin a transaction.


  • _commit()

    Commit a transaction.


  • _connect()

    Creates a connection to the database.

    throws Doctrine_Adapter_Exception


  • _rollBack()

    Roll-back a transaction.


Comments (0) [ add comment ]

 No Comments

Add Comment

Add New Comment
Please enter follow the doctrine