Hi,

I put the first steps with symfony. I have a strange problem with
following code:

  public function executeCreate(sfWebRequest $request)
  {
    $this->forward404Unless($request->isMethod(sfRequest::POST));
    $this->form = new AjActivitieForm();
    $this->processForm($request, $this->form);
    //$this->redirect('activity/show?id='.$request-
>getPostParameter('aj_activitie[id]'));
  }

  protected function processForm(sfWebRequest $request, sfForm $form)
  {
    $form->bind($request->getParameter($form->getName()), $request-
>getFiles($form->getName()));
    if ($form->isValid())
    {
      $aj_activitie = $form->save();

      $this->redirect('activity/show?id='.$aj_activitie->getId());

    }
  }


The content provided on the form is added to the database correctly.
But an object $aj_activitie does not return the ID.

Please Help me

-- 
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 developers" 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-devs?hl=en

Reply via email to