Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 25 lines (20 sloc) 0.609 kB
04d373b @beberlei Add first version of Maintenance and Replication Commands
beberlei authored
1 <?php
2
3 require_once "bootstrap.php";
4
5 $article1 = new Documents\Article();
6 $article1->setTitle("Who is John Galt?");
7 $article1->setBody("Find out!");
8 $article1->addTag("Philosophy");
9
10 $article2 = new Documents\Article();
11 $article2->setTitle("Human Action");
12 $article2->setBody("Find out!");
13 $article2->addTag("Philosophy");
14 $article2->addTag("Economics");
15
16 $article3 = new Documents\Article();
17 $article3->setTitle("Design Patterns");
18 $article3->setBody("Find out!");
19 $article3->addTag("Computer Science");
20
21 $dm->persist($article1);
22 $dm->persist($article2);
23 $dm->persist($article3);
24 $dm->flush();
25 $dm->clear();
Something went wrong with that request. Please try again.