[TYPO3-mvc] findByProperty() - Repository Method
Frank Mey - NEW.EGO
mey_mailings at newego.de
Tue May 10 13:26:57 CEST 2011
Hi,
thx a lot for the tipps guys - still struggling with extbase and mvc-driven
developement as u see :),
but step-by-step things clear up... I will write my own find-statement in
the repository then.
Kind regards,
Frank Mey
> -----Original Message-----
> From: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-
> project-typo3v4mvc-bounces at lists.typo3.org] On Behalf Of Marc Bastian
> Heinrichs
> Sent: Tuesday, May 10, 2011 1:24 PM
> To: typo3-project-typo3v4mvc at lists.typo3.org
> Subject: Re: [TYPO3-mvc] findByProperty() - Repository Method
>
> Hey,
>
> > I use the findByProperty()-Method in a Controller action, that as a
> > Tx_Domain_Model. Object assigned.
> >
> > The corresponding property of the model is a m-m relation thus a
> > Persistent_object_storage that holds objects of
> >
> > the type I assigned to the controller action.
> >
> >
> >
> > Sadly even though the Kategorie-Object is passed right (as i can debug
> > ist settings),
> >
> > No articles are returned. I checked the m-m relation database table
> > and the entries there are right (uid_foreign holds "1" for several
article
> uids).
> >
> >
> >
> > Any clue why that mechanism doesn't work here ?
>
> you need your own method in the repositiory for m-m relation properties,
> because the magic-method uses ->equals()
>
> Best
> Marc Bastian
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list