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

0.10 Doctrine_Connection_UnitOfWork

Doctrine Connection UnitOfWork

Inheritence

Doctrine_Connection_UnitOfWork  < Doctrine_Connection_Module

Method Summary

Returns Name Description
array buildFlushTree The returned array has all the initialized components in 'correct' order. Basically this means that the records of those components can be saved safely in the order specified by the returned array.
boolean delete this event can be listened by the onPreDelete and onDelete listeners
deleteComposites
deleteMultiple
deleteRecord
formatDataSet
boolean insert
processSingleInsert
save
saveAll
saveAssociations this method takes a diff of one-to-many / many-to-many original and current collections and applies the changes for example if original many-to-many related collection has records with primary keys 1,2 and 3 and the new collection has records with prima
saveGraph
saveRelated
boolean update

Method Details

  • $tables an array of Doctrine_Table objects or component names

    (array) buildFlushTree($tables)

    buildFlushTree builds a flush tree that is used in transactions

    The returned array has all the initialized components in 'correct' order. Basically this means that the records of those components can be saved safely in the order specified by the returned array.

    Doctrine_Connection_UnitOfWork


  • (boolean) delete(( ) $record)

    deletes given record and all the related composites this operation is isolated by a transaction

    this event can be listened by the onPreDelete and onDelete listeners

    Doctrine_Connection_UnitOfWork


  • deleteComposites(( ) $record)

    deletes all related composites this method is always called internally when a record is deleted

    throws PDOException if something went wrong at database level


  • deleteMultiple($records)

    deleteMultiple deletes all records from the pending delete list


  • deleteRecord(( ) $record)


  • formatDataSet(( ) $record)


  • $record record to be inserted

    (boolean) insert(( ) $record)

    inserts a record into database


  • processSingleInsert(( ) $record)


  • save(( ) $record)

    saves the given record


  • saveAll()

    saveAll persists all the pending records from all tables

    throws PDOException if something went wrong at database level


  • saveAssociations(( ) $record)

    this method takes a diff of one-to-many / many-to-many original and current collections and applies the changes
    for example if original many-to-many related collection has records with primary keys 1,2 and 3 and the new collection has records with prima

    throws Doctrine_Connection_Exception if something went wrong at database level


  • saveGraph(( ) $record)

    saves the given record


  • saveRelated(( ) $record)

    saveRelated saves all related records to $record

    throws PDOException if something went wrong at database level


  • $record record to be updated

    (boolean) update(( ) $record)

    updates given record

    Doctrine_Connection_UnitOfWork


Comments (0) [ add comment ]

 No Comments

Add Comment

Add New Comment
Please enter follow the doctrine