private static function persistTransactionPart($transactionPart, $transaction_id) {
        $transactionPart->transaction_id = $transaction_id;

        TransactionPersistance::setAccountBalance($transactionPart->account_id, $transactionPart->accountSide, $transactionPart->value);

        if (!$transactionPart->save(false)) {
            throw new Exception("TransactionPart could not be saved. Data: " . print_r($transactionPart->attributes,true));
        }
    }
private static function persistTransactionPart($transactionPart, $transaction_id) {
        $transactionPart->transaction_id = $transaction_id;

        TransactionPersistance::setAccountBalance($transactionPart->account_id, $transactionPart->accountSide, $transactionPart->value);

        if (!$transactionPart->save(false)) {
            throw new Exception("TransactionPart could not be saved. Data: " . print_r($transactionPart->attributes,true));
        }
    }
private static function persistTransactionPart ( $ transactionPart , $ transaction_id ) { $ transactionPart -> transaction_id = $ transaction_id ; TransactionPersistance :: setAccountBalance ( $ transactionPart -> account_id , $ transactionPart -> accountSide , $ transactionPart -> value ) ; if ( ! $ transactionPart -> save ( false ) ) { throw new Exception ( "TransactionPart could not be saved. Data: " . print_r ( $ transactionPart -> attributes , true ) ) ; } }
Save a transaction part

@param type $transactionPart
@param type $transaction_id
@throws Exception
Save a transaction part