[FLOW3-general] File upload

David Schoen david-schoen at gmx.de
Thu Sep 15 13:33:16 CEST 2011


Hi Bastian,

thanks alot, you made my day :)

Solution:

/**
  * Set property mapper configuration for post update
  *
  * @return void
  */
public function initializeSaveNewsAction() {
	$this->arguments['news']->getPropertyMappingConfiguration()->allowModificationForSubProperty('image');
$this->arguments['news']->getPropertyMappingConfiguration()->allowCreationForSubProperty('image');
}
	
/**
  * Saves a new news-entry
  * @return void
  */
public function saveNewsAction(\Foo\Bar\Domain\Model\News $news) {

	$this->newsRepository->add($news);
	...
}

Best regards,
David


Am 15.09.11 13:07, schrieb Bastian Waidelich:
> David Schoen wrote:
>
> Hi David,
>
>> Forget about question 2.
>
> Thanks for the update ;)
>
>
>> I still don't have a clue about question 1. So if anyone could help me
>> out there, still appreciated :)
>
> Have a look at
> <http://git.typo3.org/FLOW3/Packages/Blog.git?a=blob;f=Classes/Controller/PostController.php;h=725ce66e0a6be201440cc49156f732c5734f4afa;hb=HEAD#l105>
> maybe that helps?
>
> Best
> Bastian



More information about the FLOW3-general mailing list