[TYPO3-mvc] Using ObjectStorage properly

Felix Oertel mehl at foertel.com
Thu May 6 15:03:36 CEST 2010


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


More information about the TYPO3-project-typo3v4mvc mailing list