We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Transaction

Hello, My question about transation is can i save related models in transaction ?? (Maybe i should put it into try-catch) Is it valid ?

$model->getNextModel()->setSomethink('blabla')->getNextNextModel->setSomethingNew('albaalba'); $model->save();