Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Transactions with Model
Post: SOLVED Transactions with Model

I found a solution. The code below: Code: -- $UserModel->db->transStart(); $UserModel->save($user); $ProfileModel->save($profile); $UserModel->db->transComplete(); -- Turn into: ...
785 Views
8 Replies
11-27-2022, 01:37 AM
RedWd
    Thread: Transactions with Model
Post: RE: Transactions with Model

kenjis Wrote: (11-23-2022, 10:40 PM) -- Your sample code should work. What's wrong exactly? -- Transaction will not consider validation rules failure as a fail query so if we put a data that didn'...
785 Views
8 Replies
11-24-2022, 02:57 AM
RedWd
    Thread: Transactions with Model
Post: RE: Transactions with Model

....Meh Try to make the question in a different way: can you please post an example of transactions using Model object ? thanks
785 Views
8 Replies
11-23-2022, 06:29 PM
RedWd
    Thread: Transactions with Model
Post: Transactions with Model

Hi, everyone knows how to use transaction, right? Code: --
785 Views
8 Replies
11-19-2022, 07:43 AM
RedWd
    Thread: Where is the Best Place for Cron Methods ?
Post: RE: Where is the Best Place for Cron Methods ?

Kerry Watson Wrote: (02-04-2022, 05:20 AM) -- Individual user cron files are kept in /var/spool/cron, and system services and applications usually keep their cron job files in /etc/cron. -- Ok, you...
1,636 Views
2 Replies
11-19-2022, 07:37 AM
RedWd
    Thread: Where is the Best Place for Cron Methods ?
Post: Where is the Best Place for Cron Methods ?

Hi, i've a cron controller that calls its own methods. Pretty common. Now : these methods calls others methods like clean old entry from others coltroller/model processes. These others methods: not r...
1,636 Views
2 Replies
02-03-2022, 02:07 AM
RedWd
    Thread: Error cloning Entities
Post: Error cloning Entities

Maybe i found a bug or maybe i made mistake. When i try to clone an entities model dont save unless i fill attributes manually BUT if i make d() i see attributes filled correctly. This is the code: ...
377 Views
0 Replies
02-01-2022, 08:56 AM
RedWd
    Thread: Custom chaining in codeigniter4 model
Post: Custom chaining in codeigniter4 model

Hi everyone, like suggested in title i would like to do somethings like this: PHP Code: -- $UserModel->Where('age','18')->WithCompanyInfo()->findAll(); -- so, in my UserModel i must create this met...
1,473 Views
0 Replies
12-11-2021, 05:41 AM
RedWd

Theme © iAndrew 2016 - Forum software by © MyBB