Skip to content

Instantly share code, notes, and snippets.

@radmiraal
Created November 25, 2012 22:18
Show Gist options
  • Save radmiraal/4145645 to your computer and use it in GitHub Desktop.
Save radmiraal/4145645 to your computer and use it in GitHub Desktop.
/**
* Updates the given organisation object
*
* @param \BKWI\Kernkaart\Domain\Model\Organisation $organisation The organisation to update
* @return void
*/
public function updateAction(Organisation $organisation) {
$this->organisationRepository->update($organisation);
$this->addFlashMessage('Updated the organisation.');
$this->redirect('index');
}
/**
* Setter for aliases
*
* @param \Doctrine\Common\Collections\Collection<\BKWI\Kernkaart\Domain\Model\Alias> $aliases The aliases
* @return void
*/
public function setAliases(\Doctrine\Common\Collections\Collection $aliases) {
foreach ($aliases as $alias) {
$alias->setOrganisation($this);
}
$this->aliases = $aliases;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment