Doctrine\Tests\ODM\PHPCR\Functional\UnitOfWorkTest::testRequiredClassesAddToChildrenValid PHP Method

testRequiredClassesAddToChildrenValid() public method

    public function testRequiredClassesAddToChildrenValid()
    {
        $post = new CmsBlogPost();
        $post->name = 'hello';
        $postFolder = new CmsBlogFolder();
        $postFolder->id = '/functional/posts';
        $postFolder->posts = new ArrayCollection(array($post));
        $this->dm->persist($postFolder);
        $this->dm->flush();
    }