[TYPO3-mvc] How to access hidden records
Surena Golijani
info at homepagefarmer.de
Tue May 18 23:01:20 CEST 2010
Hey,
thanks a lot - it worked! I tried it with
$query->setRespectEnableFields(FALSE), but I didn't figure out that it
needs to be $query->getQuerySettings()->setRespectEnableFields(FALSE)...
Am 18.05.2010 17:39, schrieb Jonas Götze:
> Hi,
>
> If I understand that correct, this is exactly the same I just asked too :)
>
> The Response:
> http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2010-May/004651.html
>
>
> Regards Jonas
>
> Am 18.05.2010 17:39, schrieb Surena Golijani:
>> Hi everybody,
>>
>> I need to hide/unhide objects. I included the hidden field in the model
>> of my object with getters/setters so that I can hide it now, but finding
>> hidden objects by the repository doesn't work:
>>
>> $query->matching($query->equals('hidden', 1))
>> ->setOrderings(array('companyname' =>
>> Tx_Extbase_Persistence_QueryInterface::ORDER_ASCENDING))
>> ->execute();
>>
>> For sure there is a more "extbase-way" to do it, but I couldn't find it
>> in the documentation available in the net...
>>
>> Did anybody had a similar problem or news a solution to this?
>> Thank you in advance!
>> Surena
>
More information about the TYPO3-project-typo3v4mvc
mailing list