[TYPO3-mvc] Writing CSV-Lists with extbase
dennis ahrens
dennis.ahrens at googlemail.com
Mon Mar 1 18:50:00 CET 2010
Hi List,
has anybody brought extbase writing csv-lists? f.e. for fe_users or
be_users? i've just get it to read existing fields successful - but
when persisting a record with extbase, changes will not effect the
related fields.
The changed value will not appear in the SQL-Statement.
I've used a little hack as a workaround, but i'm not really happy
about it, because when you want to create a new record of this object
the next hack is needed... :
public function update($modifiedObject) {
$this->updatePersonFields($modifiedObject);
$modifiedObject->_memorizePropertyCleanState('leiter');
$modifiedObject->_memorizePropertyCleanState('kontakt');
$modifiedObject->_memorizePropertyCleanState('teilnehmer');
parent::update($modifiedObject);
}
In this case my object holds three properties, which has to be
persisted as csv-lists. updatePersonFields() directly writes the
values into the DB and tells the persistence layer, that the manually
written fields are clean.
Are there any other solutions/experiences out there?
regards
Dennis
More information about the TYPO3-project-typo3v4mvc
mailing list