[TYPO3-mvc] Using ObjectStorage properly

S.Korth s.korth at dms-arts.com
Thu May 6 16:21:58 CEST 2010


Felix Oertel schrieb:
> hey,
> 
> ok, without relation it will be hard to map stuff. *g* Add a database 
> field "members" to your club-table. Set TCA to
> 
> type=none
> foreign_table=fe_users
> foreign_field=[the field where the club get's stored in the -table]
> maxitems=1
> 
> don't show the field in the backend tceform.
> 
> extbase will lookup the fe_users-table, search for rows which are mapped 
> to the current club and map them into the members-property of your club 
> model.
> 
> the set() method looks as allways ... set($members) { $this->members = 
> $members; }
> 
> you won't need a repository at all then ;)
> 
> regards, foertel



Hey Felix,

i don't understand why this works without a repository. I thought this 
is the only way to get data out of database. Or is it just cause of the
MVC pattern ?

Sascha


More information about the TYPO3-project-typo3v4mvc mailing list