bridge/doctrine-orm/tests/Functional/OrmAgentTest.php 1 location
|
@@ 46-56 (lines=11) @@
|
43 |
|
$this->agent->setParent($page, $parent); |
44 |
|
} |
45 |
|
|
46 |
|
private function createPage($title = 'Hello World') |
47 |
|
{ |
48 |
|
static $id = 1; |
49 |
|
$page = new Page(); |
50 |
|
$page->id = $id++; |
51 |
|
$page->title = $title; |
52 |
|
$this->entityManager->persist($page); |
53 |
|
$this->entityManager->flush(); |
54 |
|
|
55 |
|
return $page; |
56 |
|
} |
57 |
|
} |
58 |
|
|
bridge/doctrine-phpcr-odm/tests/Functional/PhpcrOdmAgentTest.php 1 location
|
@@ 54-65 (lines=12) @@
|
51 |
|
$this->agent->setParent($page, $parent); |
52 |
|
} |
53 |
|
|
54 |
|
private function createPage($title = 'Hello World') |
55 |
|
{ |
56 |
|
static $id = 1; |
57 |
|
|
58 |
|
$page = new Page(); |
59 |
|
$page->title = $title; |
60 |
|
$page->path = '/test/page-' . $id++; |
61 |
|
$this->documentManager->persist($page); |
62 |
|
$this->documentManager->flush(); |
63 |
|
|
64 |
|
return $page; |
65 |
|
} |
66 |
|
} |
67 |
|
|