How to save the multi-records in one model in a single transaction in Yii2

category:  Yii2.0 framework

Recently I just add the new feature on my application. What new feature does, it generates the new invoice from the time-sheet. This way, my clients can see my log time and note on each task. So they know in detail what I did for their project. The steps are: get the time-sheet data filtered by the specific client, date range and unbilled status In the time-sheet loop, insert the new invoice and invoice detail If something goes wrong while … Read More