Hello

I was searching in Google about how to call stored procedures, I found
this post in this group:
http://groups.google.com/group/symfony-users/browse_thread/thread/099b770555a061cf/9fc9c7a67d69cda1?hide_quotes=no

There Praveen recommended to use the following sintax:

$wt=Doctrine_Manager::getInstance()->getCurrentConnection()-
>fetchAssoc
('SELECT your_function()');


I was testing around and pasted it in the executeNew action in
actions.php.Don't know if it is the correct place.

 public function executeNew(sfWebRequest $request)
  {
    $this->form = new personasForm();
        $wt=Doctrine_Manager::getInstance()->getCurrentConnection()-
>fetchAssoc
('stored_proc_name_goes_here()');
  }


What I want to do is the following:

When a new user is inserted into the sfGuardUser table and that user
belongs to a group on sfGuardUserGroup (doctors ),
the id of that user is inserted into a table that have the following
fields :
userID and Value, an example:
1(userID), 0 (default value, Value)

Can that be done via Doctrine without calling the stored procedure?

Thanks for your help.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to