Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

How to redo the save option in phalcon

this is my code ......

$user= new user();
$emp= new Employee();

now sometimes i able to save the data in first table but not able to save the data in second that case i want to redo the save option done in the first to kept uniqueness validator in the first table if iam trying again its is saying that the data is already present as the data already saved in the table. Please help??


Use transaction.

transction is not working when i am using alias below is my code.....

                $rel->emp_id = $user->id;
                $rel->wal_id = $this->request->getPost($type->wallettype_code);  

                but when i  am trying to save.....I got an error stating ::  trying to get a property of an non object....
                Please help