From 55f58c9c5e8c523b7547c5d8199f0efef6941b93 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 11 Feb 2015 21:06:32 +0100 Subject: Update UserConfig schema --- src/Wallabag/CoreBundle/Command/InstallCommand.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Wallabag/CoreBundle/Command') 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 $em->persist($user); $pagerConfig = new UsersConfig(); - $pagerConfig->setUserId($user->getId()); + $pagerConfig->setUser($user); $pagerConfig->setName('pager'); $pagerConfig->setValue(10); $em->persist($pagerConfig); - // $languageConfig = new LanguageConfig(); - // $languageConfig->setUserId($user->getId()); - // $languageConfig->setName('language'); - // $languageConfig->setValue('en_EN.UTF8'); + $languageConfig = new LanguageConfig(); + $languageConfig->setUser($user); + $languageConfig->setName('language'); + $languageConfig->setValue('en_EN'); - // $em->persist($languageConfig); + $em->persist($languageConfig); $em->flush(); } -- cgit v1.2.3