|
Doctrine 1.2.4
|
Inherits Doctrine_Connection_Module.
Inherited by Doctrine_Sequence_Db2, Doctrine_Sequence_Mssql, Doctrine_Sequence_Mysql, Doctrine_Sequence_Oracle, Doctrine_Sequence_Pgsql, and Doctrine_Sequence_Sqlite.
Public Member Functions | |
| currId ($seqName) | |
| getConnection () | |
| getModuleName () | |
| lastInsertId ($table=null, $field=null) | |
| nextId ($seqName, $ondemand=true) | |
Definition at line 34 of file Sequence.php.
| Doctrine_Sequence::currId | ( | $seqName | ) |
Returns the current id of a sequence
| string | $seqName | name of the sequence |
Definition at line 69 of file Sequence.php.
|
inherited |
getConnection returns the connection object this module uses
Definition at line 68 of file Module.php.
|
inherited |
getModuleName returns the name of this module
Definition at line 79 of file Module.php.
| Doctrine_Sequence::lastInsertId | ( | $table = null, |
|
$field = null |
|||
| ) |
Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
| string | name of the table into which a new row was inserted |
| string | name of the field into which a new row was inserted |
Definition at line 57 of file Sequence.php.
| Doctrine_Sequence::nextId | ( | $seqName, | |
$ondemand = true |
|||
| ) |
Returns the next free id of a sequence
| string | $seqName | name of the sequence |
| bool | when true missing sequences are automatic created |
| Doctrine_Sequence_Exception |
Definition at line 45 of file Sequence.php.