public function completeTransaction($transaction_id, Array $newCBDs)
    {

        $this->updateTransaction(
            array("_id" => $transaction_id),
            array('$set' => array('status' => 'completed', 'endTime' => \Tripod\Mongo\DateUtil::getMongoDate(), 'newCBDs'=>$newCBDs)),
            array('w' => 1)
        );
    }
public function completeTransaction($transaction_id, Array $newCBDs)
    {

        $this->updateTransaction(
            array("_id" => $transaction_id),
            array('$set' => array('status' => 'completed', 'endTime' => \Tripod\Mongo\DateUtil::getMongoDate(), 'newCBDs'=>$newCBDs)),
            array('w' => 1)
        );
    }
public function completeTransaction ( $ transaction_id , Array $ newCBDs ) { $ this -> updateTransaction ( array ( "_id" => $ transaction_id ) , array ( '$set' => array ( 'status' => 'completed' , 'endTime' => \ Tripod \ Mongo \ DateUtil :: getMongoDate ( ) , 'newCBDs' => $ newCBDs ) ) , array ( 'w' => 1 ) ) ; }
Update the status of a transaction to completed, and adds an end time

@param string $transaction_id - the id of the transaction you want to mark as completed
@param array $newCBDs array of CBD's that represent the after state for each modified entity
Update the status of a transaction to completed and adds an end time