[TYPO3-mvc] Find records by difference storage page id
Thomas "Thasmo" Deinhamer
thasmo at gmail.com
Thu Jul 1 21:02:56 CEST 2010
Am 01.07.2010 15:10, schrieb Eat Dimanche:
> I have one class is called Tx_XX_Domain_Model_Comapny which has a
> relationship with Tx_XX_Domain_Model_Country. The company contains a
> country, and for table country it is selected data from static_countries
> table. When I am working on the frontend I want to list all the
> countries in a dropdown, but I can't.
Hello!
Actually there is a patch which would at least enable you to query
objects via all find*ByUid() without pid restriction. For repositories
I'm not sure if you can use them to get objects from pid 0, because a
page with uid 0 does NOT exist.
Of course records can have pid 0, but that just means that these records
don't have any pid assigned. So they've no real relation to any page. In
case of the backend, these records are listed on the super-rootpage.
The patch I'm talking about is this:
http://forge.typo3.org/issues/5631
I also think if you use the trunk version of Extbase,
this patch is already included.
For querying multiple objects via repository I'm not sure if it's
possible to get objects from pid 0.
Thomas
More information about the TYPO3-project-typo3v4mvc
mailing list