aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index 6326d31f..2dfe2f51 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -19,8 +19,9 @@ class EntryController extends Controller
19 */ 19 */
20 public function addEntryAction(Request $request) 20 public function addEntryAction(Request $request)
21 { 21 {
22 $entry = new Entry(); 22 $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:User');
23 $entry->setUserId(1); 23 $user = $repository->find(1);
24 $entry = new Entry($user);
24 25
25 $form = $this->createFormBuilder($entry) 26 $form = $this->createFormBuilder($entry)
26 ->add('url', 'url') 27 ->add('url', 'url')