• 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
FunctionalTestCase.php 8.7 KB