[TYPO3-mvc] manually Object Reconstitution

Michael Knoll mimi at kaktusteam.de
Sun Dec 27 02:23:59 CET 2009


Steffen Ritter schrieb:
> Hey list,
> I'm currently searching for an possibility to manually reconstitute an 
> object with an known table uid (yes i know that i should not rely on 
> uids). Anyways: is it possible in an easy way?
> 
> regards Steffen


Hi Steffen,

not sure if this is, what you are looking for. But if you have a domain 
object for this table and you simply want to generate such an object for 
a given UID, you can use

Tx_YourExtension_Domain_Repository_YourDomainModelNameRepository::findByUid($uid)

to get an object for a given UID.

Greetings

Michael


More information about the TYPO3-project-typo3v4mvc mailing list