[TYPO3-mvc] How to save IRRE Values?

Felix Oertel f at oer.tel
Tue Apr 19 15:53:34 CEST 2011


hey,

Am 19.04.11 15:06, schrieb Felix Oertel:
> again it's important to use the same index for extbase to know which
> properties belong to which object.

even it is tempting to use the objects's uid as index as in 
product.store.{store.uid}.name this is not a good idea. could be you are 
redirected here because validation failed after creating new items and 
the newly created items don't have uids then. to avoid that i 
implemented the following in my model.

/**
  * @return string
  */
public function getHash() {
	return spl_object_hash($this);
}

and used {store.hash} as unique identifier in the form.

> regards, foertel


More information about the TYPO3-project-typo3v4mvc mailing list