Code snippets for symfony 1.x


Refine Tags

Snippets tagged "doctrine objecthelper"

Saving records w/ Doctrine from a form using object helpers

// This is meant to be in actions.class.php as one of your actions. // Note how it redirects to your view action after saving.

public function executeSave() { $req = $this->getRequest();

$q = new Doctrine_Query();
$user = $q->from('UserInfo')->where('id = ?',$this->getRequestParameter('id'))->execute()->getFirst();


by whoknows on 2007-06-12, tagged doctrine  objecthelper  save