[TYPO3-mvc] temporary set does db update?

Ralph Germershausen elralfo at gmail.com
Wed Dec 14 10:12:43 CET 2011


ok. this seems to be the solution:
http://www.dinse-software.de/2011/09/automatisches-persistieren-in-extbase/
Am 14.12.2011 09:53, schrieb Ralph Germershausen:
> hi there. i try to fill a select with db objects.
> 
> <f:form.select name="spublisher" options="{publisherSelect}"
> optionValueField="uid" optionLabelField="title" class="style2"
> value="{piVars.spublisher}"/>
> 
> my problem is that there is a title and shorttitle
> so i try to set shorttitle for title if there is one.
> BUT.. this change make his way into the db. i am in a list view.
> no update actions. this is the second time i ran into problems with set.
> is this a wished behaviour and i am doind something wrong or is a bug?
> 
> $publisher = $this->publisherRepository->findAllOrdered();
> //prepare shorttitle
> $publisherArr = array();
> foreach($publisher->toArray() as $key => $value) {
>     if(trim($value->getTitlenav()) != '') {
>           $value->setTitle($value->getTitlenav());
>      }
>      array_push($publisherArr, $value);
>  }



More information about the TYPO3-project-typo3v4mvc mailing list