Doctrine\Tests\ODM\PHPCR\Functional\ReferenceTest::testCreateManyNoArrayError PHP Method

testCreateManyNoArrayError() public method

    public function testCreateManyNoArrayError()
    {
        $refManyTestObj = new RefManyTestObj();
        $refRefTestObj = new RefRefTestObj();
        $refManyTestObj->id = "/functional/refTestObj";
        $refRefTestObj->id = "/functional/refRefTestObj";
        $refManyTestObj->references = $refRefTestObj;
        $this->dm->persist($refManyTestObj);
        try {
            $this->dm->flush();
        } catch (PHPCRException $e) {
            $this->assertContains('Referenced document is not stored correctly in a reference-many property.', $e->getMessage());
            throw $e;
        }
    }