Guest User

Untitled

a guest
Jan 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public function syncAction(EntityManager $em)
  2. {
  3. $posts = $em->getRepository('App:Posts')->findAllByOwner($this->getUser());
  4.  
  5. return new JsonResponse(['ok' => true, 'posts' => $this->toJson($posts)]);
  6. }
  7.  
  8. return new JsonResponse(['ok' => true, 'posts' => $posts]);
Add Comment
Please, Sign In to add comment