[TYPO3-mvc] Left join query

Christine Gerpheide cgerpheide at gmail.com
Fri Jun 25 12:16:44 CEST 2010


>
>
>        /**
>         *
>         * @var Tx_BwShop_Domain_Model_Products
>         * @lazy
>
>         */
>        protected $products;
>
>
>        public function getProducts() {
>                return $this->products;
>        }}
>
> How can I make $keyword->getProduct() return all the products and not a
> single one.
>
>
>

Hm. Maybe it got lost, but from above you need to at least change your
annotations for $products:
---
erm, as there is more then one product it would make sense to use an
objectStorage ;-)

and if you use trunk-extbase, extbase detects the relation from the
annotation, which would say '1:1' in your case.

regards, foertel
---

Hth,
Christine


More information about the TYPO3-project-typo3v4mvc mailing list