Sokil\Mongo\CursorTest::testErrorOnAcceptedAndSkippedFieldsPassed PHP Метод

testErrorOnAcceptedAndSkippedFieldsPassed() публичный Метод

    public function testErrorOnAcceptedAndSkippedFieldsPassed()
    {
        // create new document
        $document = $this->collection->createDocument(array('a' => 'a1', 'b' => 'b1', 'c' => 'c1', 'd' => 'd1'));
        $document->save();
        $documentId = $document->getId();
        // fild some fields of document
        $document = $this->collection->find()->fields(array('a', 'c'))->skipField('b')->findOne();
    }