Closed hethehe closed 3 weeks ago
@hethehe honestly, not sure... we never actually had in mind that the BatchList can use a offset :D.
@dpfaffenbauer We tried to set an offset for the coreshop:index
command, as sometimes it would be nice not to include all products ;)
Are you interested in a PR that changes the $dao
to $list
? I don't see anything that could break, WDYT?
@hethehe yes, we are interested. it should be tested anyway, maybe you can add another test for offests?
Just realized, that this is not a problem of your BatchListing
but from Pimcore's getTotalCount()
see: https://github.com/pimcore/pimcore/issues/17618
gotcha, then we can close this?
yes, closed
Can this issue be opened again please?
I believe the initial issue would be fixed if we replace getTotalCount()
to getCount()
in there
see also https://github.com/pimcore/pimcore/issues/17618#issuecomment-2353334021
@hethehe can you give it a test?
If we create a
Listing
and set a offset with$listing->setOffset(100)
and use it with theCoreShop\Component\Pimcore\BatchProcessing\DataObjectBatchListing
it gets ignored.I think the problem is that you get the
loadIdList()
and thegetTotalCount()
from theDAO
instead directly from the$list
Is there a special reason you use the
$dao
instead the$list
directly?