Doctrine\Tests\ODM\CouchDB\View\DoctrineAssociationsTest::testFetchReverseRelations PHP Méthode

testFetchReverseRelations() public méthode

    public function testFetchReverseRelations()
    {
        $this->addTestData();
        $view = $this->createDoctrineViewQuery();
        $result = $view->setStartKey(array("doc_b", "type_b"))->setEndKey(array("doc_b", "type_b", "z"))->execute();
        $this->assertEquals(array("_id" => "doc_a"), $result[0]['value']);
    }