Hi folks,

I am using symfony 1.4 (Doctrine).

I have been trying to find the form's object while editing the form.
I have been using custom routing for form submission url.

Please look at the following case:

http://www.something/user/username/comment

In the above URL, user is module name, username is the slug parameter,
comment is the action name.

I want to get the comment object based on form's field (id) and
username.

e.g- where username = '$username' and id = '$id'

public function executeComment()
{
   $username = $this->getRequestParamter('slug');

   $object = // how to get the object like:  where username =
'$username' and id = '$id'
   $form  = new CommentForm(object);
}

How to get the id value from post method before binding the form?



Thanks

-Imran

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to