• Jeremy Mikola's avatar
    Rely on Collection to apply read/write opts for old servers · bbfad489
    Jeremy Mikola authored
    Server versions < 3.4 do not support write concerns for drop commands. Rather than pass the context's write options directly to drop(), filter them through the Collection class so it can decide to inherit them based on the server's wire version.
    
    Likewise for executing find() on the output collection.
    bbfad489
Name
Last commit
Last update
.github/ISSUE_TEMPLATE Loading commit data...
.phpcs Loading commit data...
.travis Loading commit data...
docs Loading commit data...
mongo-orchestration Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
composer.json Loading commit data...
phpcs.xml.dist Loading commit data...
phpunit.xml.dist Loading commit data...