Closed edguar closed 4 years ago
Hi @edguar, this is a https://github.com/sonata-project/SonataDoctrineMongoDBAdminBundle issue.
null
is supposed to be a valid value. The ProxyQuery methods should be fixed.
The following calls are invalid.
$this->queryBuilder->skip(null);
$this->queryBuilder->limit(null);
But I don't know how they should be fixed.
I understand limit(0)
as 0 result, when limit(null)
was meant to be no limit so every result.
Do you know @edguar ? Do you want to try a PR ?
Maybe a PR should be open to doctrine/mongodb-odm ?
@franmomu Maybe do you know ?
I think setting both to 0
would be the same as null
, I'll check later today.
Environment
Sonata packages
Symfony packages
PHP version
Subject
I try to delete documents from list view (batch action). After confirmation get error
Actual results
Working if change null to 0 https://github.com/sonata-project/SonataAdminBundle/blob/9b1c68a906afc10f48d41476375e658920d59f1b/src/Controller/CRUDController.php#L510-L511