Doctrine\Benchmarks\ODM\PHPCR\PersistBench::benchPersistTwo PHP Метод

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

public benchPersistTwo ( )
    public function benchPersistTwo()
    {
        $user1 = new CmsUser();
        $user1->username = 'dantleech';
        $address = new CmsAddress();
        $address->city = "Springfield";
        $address->zip = "12354";
        $address->country = "Germany";
        $user1->address = $address;
        $this->documentManager->persist($user1);
        $this->documentManager->persist($address);
        $this->documentManager->flush();
    }