Welcome Guest, Not a member yet? Register   Sign In
Call to undefined method App\Models\[...]::transStart
#4

(This post was last modified: 11-29-2020, 02:18 PM by webdevron.)

(11-25-2020, 06:22 AM)neoneeco Wrote: 1) Have you tested without this method? (commenting it)

2) It may seem obvious, is this method well implemented? the code doesn't show it, with the closing class brace.

Thank you for your response.
1. Without transection, both method are doing as expected.
Code:
model->saveProduct(true); // Saving product
model->saveProduct(false); // Updating product

With transection only the update product "model->saveProduct(false);" showing the error.

2. This method is a part of a large class. Everything is doing well except the update method.

(11-25-2020, 03:43 PM)InsiteFX Wrote:
PHP Code:
$this->db->transStart();
$this->save($val);
$this->saveCat();
$this->db->transComplete(); 

I am not using Query Builder. Using inherited Codeigniter model instead. Again those method are not working just for
PHP Code:
model->saveProduct(false); 
"Who thinks in code"
Perfectly describes who I am
mbparvez.me
Reply


Messages In This Thread
RE: Call to undefined method App\Models\[...]::transStart - by webdevron - 11-29-2020, 02:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB