Hi...

Quote Originally Posted by hantu
PHP Code:
/* load the objects, but don't store information about them */
$friends $session->fetch($queryQuery::IGNORE_CHANGE_TRACKING);
$tx $session->beginTransaction(); 
foreach (
$friends as $friend) {
  
$friend->send($gift);
  
/* do a manual update*/
  
$session->update($friend);
}
$tx->commit(); 
I don't think a separate transaction ans session object are needed for PHP. Just one class for both would probably suffice. As a PHP script runs a single short lived process with no threads the most likely usage is a single transaction. If not then they can just create another with "new" as I doubt anything is shared between them.

yours, Marcus