Skip to content

Instantly share code, notes, and snippets.

@stajnert
Created July 12, 2013 09:28
Show Gist options
  • Save stajnert/5983111 to your computer and use it in GitHub Desktop.
Save stajnert/5983111 to your computer and use it in GitHub Desktop.
Change values before bind
<?php
$values = $request->getParameter($form->getName());
$values['yourdate'] = NEW MODIFIED DATE VALUE;
$form->bind($values, $request->getFiles($form->getName()));
$o = $form->getObject();
$o->save();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment