[TYPO3-mvc] Using ObjectStorage properly
Søren Malling
soren.malling at gmail.com
Fri May 7 09:56:43 CEST 2010
Hi Felix,
I tried out the mentioned solution but the "members" property was
returned blank.
I will show you my TCA, as I know you will ask for it ;-)
TCA: --> http://pastie.org/949723
Controller: --> http://pastie.org/949724
Fluid: --> http://pastie.org/949725
I used the debug viewhelper to see that the "members" property was blank.
I hope you can see where I'm handling this wrong :-)
Regards,
Søren
Btw. if you are attending T3CON10-Dallas I will definitely buy you a
beer or two!
On Thu, May 6, 2010 at 3:03 PM, Felix Oertel <mehl at foertel.com> wrote:
> 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
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
--
Officially Certified TYPO3 Integrator
More information about the TYPO3-project-typo3v4mvc
mailing list