Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // To search for posts
- $posts = $this->getDoctrine()->getRepository('BlogBundle:Post')->findByAuthorName('Artur');
- // To save new post in database
- $this->getDoctrine()->getRepository('BlogBundle:Post')->persist($post);
- Give me follow on Github:
- http://github.com/shfx17
Add Comment
Please, Sign In to add comment