My edit form does not update when I make changes to it. I have to wait a
couple of seconds and hit refresh. Same with a page that queries the
database and shows the records. The table is updated in mysql, but the form
shows the old value.

public function executeEdit(sfWebRequest $request)
  {
    $this->forward404Unless($items =
Doctrine::getTable('items')->find(array($request->getParameter('item_id'))),
sprintf('Object items does not exist (%s).',
$request->getParameter('item_id')));

    //make sure the item being edited is owned by the logged in user

 
$this->forward404Unless($items->getUser_id()==$this->getUser()->getGuardUser()->getId());


    //set category id
       $query=Doctrine_Query::create()
      ->select('name')
      ->from('categories')
      ->where('category_id="'.$items->category_id.'"')
      ->limit(1);
      $category=$query->fetchArray();
      @$items->category_id=$category[0]['name'];
    $this->form = new itemsUserForm($items);
  }

-- 
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