  protected function doSave()
  {
    $this->object->save();
    return sfView::NONE;
  }

  protected function doSave()
  {
    $this->object->save();

    // Set a Location header with the path to the new / updated object
    $this->getResponse()->setHttpHeader('Location', $this->getController()->genUrl(
      array_merge(array(
        'sf_route' => '<?php echo $this->getModuleName(); ?>_show',
        'sf_format' => $this->getFormat(),
      ), $this->object->identifier())
    ));

    return sfView::NONE;
  }

Add the Location header on Response when an entity is saved.
Add the Location header on Response when an entity is saved.
