aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Command
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-02-11 21:06:32 +0100
committerJeremy <jeremy.benoist@gmail.com>2015-02-16 21:31:58 +0100
commit55f58c9c5e8c523b7547c5d8199f0efef6941b93 (patch)
treeaa7c8e7ad28ac09dc9e5b18183478c4976e70174 /src/Wallabag/CoreBundle/Command
parent2f6a596760c62efd9e43602f787fa44400d522b3 (diff)
downloadwallabag-55f58c9c5e8c523b7547c5d8199f0efef6941b93.tar.gz
wallabag-55f58c9c5e8c523b7547c5d8199f0efef6941b93.tar.zst
wallabag-55f58c9c5e8c523b7547c5d8199f0efef6941b93.zip
Update UserConfig schema
Diffstat (limited to 'src/Wallabag/CoreBundle/Command')
-rw-r--r--src/Wallabag/CoreBundle/Command/InstallCommand.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php
index feaaebf6..bf2f747d 100644
--- a/src/Wallabag/CoreBundle/Command/InstallCommand.php
+++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php
@@ -136,18 +136,18 @@ class InstallCommand extends ContainerAwareCommand
136 $em->persist($user); 136 $em->persist($user);
137 137
138 $pagerConfig = new UsersConfig(); 138 $pagerConfig = new UsersConfig();
139 $pagerConfig->setUserId($user->getId()); 139 $pagerConfig->setUser($user);
140 $pagerConfig->setName('pager'); 140 $pagerConfig->setName('pager');
141 $pagerConfig->setValue(10); 141 $pagerConfig->setValue(10);
142 142
143 $em->persist($pagerConfig); 143 $em->persist($pagerConfig);
144 144
145 // $languageConfig = new LanguageConfig(); 145 $languageConfig = new LanguageConfig();
146 // $languageConfig->setUserId($user->getId()); 146 $languageConfig->setUser($user);
147 // $languageConfig->setName('language'); 147 $languageConfig->setName('language');
148 // $languageConfig->setValue('en_EN.UTF8'); 148 $languageConfig->setValue('en_EN');
149 149
150 // $em->persist($languageConfig); 150 $em->persist($languageConfig);
151 151
152 $em->flush(); 152 $em->flush();
153 } 153 }