Skip to content

Instantly share code, notes, and snippets.

@fvosberg
Created January 29, 2015 10:20
Show Gist options
  • Save fvosberg/f8f8f32ea4d9bc69c419 to your computer and use it in GitHub Desktop.
Save fvosberg/f8f8f32ea4d9bc69c419 to your computer and use it in GitHub Desktop.
Get an invalid object in the "show form" action
public function initializeNewAction() {
if( !$this->request->hasArgument('newObject') && $this->request->getHttpRequest()->hasArgument('newObject') ) {
$this->request->setArgument('newObject', $this->request->getHttpRequest()->getArgument('newObject'));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment