aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle/DataFixtures/ORM
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2016-01-15 15:21:43 +0100
committerJeremy Benoist <j0k3r@users.noreply.github.com>2016-01-15 15:21:43 +0100
commit790573d45899504bdecd2573c8f64018e23b139e (patch)
tree58715ecffdaa63660f30447e64fcf892d06a223f /src/Wallabag/UserBundle/DataFixtures/ORM
parent9ee44a109a93ce8af5a85fb1ba349d390623454d (diff)
parent5c072d2b57b2b5f95b25411909ac8a6af2ef6ebe (diff)
downloadwallabag-790573d45899504bdecd2573c8f64018e23b139e.tar.gz
wallabag-790573d45899504bdecd2573c8f64018e23b139e.tar.zst
wallabag-790573d45899504bdecd2573c8f64018e23b139e.zip
Merge pull request #1560 from wallabag/v2-quickstart
Fix #1501 Quickstart for beginners
Diffstat (limited to 'src/Wallabag/UserBundle/DataFixtures/ORM')
-rw-r--r--src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php b/src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php
index d48855da..26dbda3b 100644
--- a/src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php
+++ b/src/Wallabag/UserBundle/DataFixtures/ORM/LoadUserData.php
@@ -37,6 +37,17 @@ class LoadUserData extends AbstractFixture implements OrderedFixtureInterface
37 37
38 $this->addReference('bob-user', $bobUser); 38 $this->addReference('bob-user', $bobUser);
39 39
40 $emptyUser = new User();
41 $emptyUser->setName('Empty');
42 $emptyUser->setEmail('empty@wallabag.org');
43 $emptyUser->setUsername('empty');
44 $emptyUser->setPlainPassword('mypassword');
45 $emptyUser->setEnabled(true);
46
47 $manager->persist($emptyUser);
48
49 $this->addReference('empty-user', $emptyUser);
50
40 $manager->flush(); 51 $manager->flush();
41 } 52 }
42 53