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

Development Doctrine_Internal_CommitOrderCalculator

Doctrine Internal CommitOrderCalculator

The CommitOrderCalculator is used by the UnitOfWork to sort out the correct order in which changes to entities need to be persisted.

Method Summary

Returns Name Description
addNode
addNodeWithItem
clear
array getCommitOrder Uses a depth-first search (DFS) to traverse the graph. The desired topological sorting is the reverse postorder of these searches.
getNextTime
getNodeForKey
hasNodeWithKey
prependNode

Method Details

  • addNode($key, $node)


  • addNodeWithItem($key, $item)


  • clear()


  • $nodes The list of (unordered) CommitOrderNodes.

    (array) getCommitOrder($nodes)

    Orders the given list of CommitOrderNodes based on their dependencies.

    Uses a depth-first search (DFS) to traverse the graph. The desired topological sorting is the reverse postorder of these searches.

    Doctrine_Internal_CommitOrderCalculator


  • getNextTime()


  • getNodeForKey($key)


  • hasNodeWithKey($key)


  • prependNode($node)


Comments (0) [ add comment ]

 No Comments

Add Comment

Add New Comment
Please enter follow the doctrine