Advertisement
fernandezekiel

Untitled

Dec 21st, 2013
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. $tx = new Transaction('credit');
  2. $tx->attributes = $data;
  3. $tx->save();
  4.  
  5. $tx = new Transaction('debit');
  6. $tx->attributes = $data;
  7. $tx->save();
  8.  
  9. $tx = Transaction::model()->find($criteria);
  10. $tx->void();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement