Created
November 25, 2012 22:18
-
-
Save radmiraal/4145645 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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