I was curious. Since you use transactions when doing model()->save(s). Could you do the same thing with command.
Examples of what I mean:
Example with ActiveRecord:
if ($someModel->save()) {
$transaction->commit();
}
Example with Command:
if ($command->query()) {
$transaction->commit();
}
Will it essentially perform the same way or will it not work at all? I couldn’t find anything on this specifically without seeing the one type of usage. Thanks in advance.