Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1714a31

Browse filesBrowse files
committed
minor #3585 Use consistent method chaining in BlogBundle sample application (ockcyp)
This PR was merged into the 2.3 branch. Discussion ---------- Use consistent method chaining in BlogBundle sample application - Moved semicolon to end of last chained method - Moved getManager() to next line to avoid having multiple chained methods in the same line Commits ------- 3670cbb Use consistent method chaining in BlogBundle sample application - Moved semicolon to end of last chained method - Moved getManager() to next line to avoid having multiple chained methods in the same line
2 parents cb61f4f + 3670cbb commit 1714a31
Copy full SHA for 1714a31

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎book/from_flat_php_to_symfony2.rst

Copy file name to clipboardExpand all lines: book/from_flat_php_to_symfony2.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,8 @@ them for you. Here's the same sample application, now built in Symfony2::
550550
{
551551
public function listAction()
552552
{
553-
$posts = $this->get('doctrine')->getManager()
553+
$posts = $this->get('doctrine')
554+
->getManager()
554555
->createQuery('SELECT p FROM AcmeBlogBundle:Post p')
555556
->execute();
556557

@@ -565,8 +566,7 @@ them for you. Here's the same sample application, now built in Symfony2::
565566
$post = $this->get('doctrine')
566567
->getManager()
567568
->getRepository('AcmeBlogBundle:Post')
568-
->find($id)
569-
;
569+
->find($id);
570570

571571
if (!$post) {
572572
// cause the 404 page not found to be displayed

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.