[TYPO3-mvc] Language overlay with sys_language_mode=strict and limit/offset

Kevin Ulrich Moschallski km at 3digit.de
Wed Jan 12 16:46:45 CET 2011


Hi Thomas,

did you manage to limit the count to the sys_language? Or should 
countBySysLanguageUid() be used here?

I tried to add $rows = 
$this->doLanguageAndWorkspaceOverlay($query->getSource(), $rows) to 
getObjectCountByQuery() but had no luck. I've to dive deeper into the 
Persistence layer to find out how things work / should work.

Would be nice if somebody from the extbase team could tell us if this 
is a bug or a configuration issue. I'm willing to try to fix any bug, 
but i don't want to waste my time if it is only i wrong configuration 
by me.

Regards,
Kevin
On 2010-11-25 19:53:09 +0100, Thomas Heilmann said:

> Hi all,
> 
> I am trying to use limit/offset and count in a repository with localized
> objects and sys_language_mode set to strict. The query result for an
> alternative language contains only translated records; but countAll
> returns the number of all record. Respectively, $query->setLimit applies
> the limit to all objects, not only the translated ones.
> 
> I peeked into the Typo3DbBackend, if I am not missing something,
> getObjectCountByQuery does not take into account language settings yet
> (neither does limit/offset). Right?
> 
> Regards,
> Thomas




More information about the TYPO3-project-typo3v4mvc mailing list