Транзакции
$transaction=$connection->beginTransaction();
try
{
$connection->createCommand($sql1)->execute();
$connection->createCommand($sql2)->execute();
$transaction->commit();
}
catch(Exception $e)
{
$transaction->rollback();
}
Yii Справочник v0.05 © 2007-2024 Igor Salnikov aka SunDoctor