Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit1714a31

Browse files
committed
minorsymfony#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 lineCommits-------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 parentscb61f4f +3670cbb commit1714a31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎book/from_flat_php_to_symfony2.rst

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp