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 1f6cc62

Browse filesBrowse files
authored
Add missing parenthesis for methods and a few minor tweaks
1 parent f144c85 commit 1f6cc62
Copy full SHA for 1f6cc62

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+5
-5
lines changed

‎doctrine.rst

Copy file name to clipboardExpand all lines: doctrine.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -537,10 +537,10 @@ Take a look at the previous example in more detail:
537537
responsible for the process of persisting objects to, and fetching objects
538538
from, the database.
539539

540-
* **line 17** The ``persist($product)`` call tells Doctrine to "manage" the
540+
* **line 18** The ``persist($product)`` call tells Doctrine to "manage" the
541541
``$product`` object. This does **not** cause a query to be made to the database.
542542

543-
* **line 18** When the ``flush()`` method is called, Doctrine looks through
543+
* **line 21** When the ``flush()`` method is called, Doctrine looks through
544544
all of the objects that it's managing to see if they need to be persisted
545545
to the database. In this example, the ``$product`` object's data doesn't
546546
exist in the database, so the entity manager executes an ``INSERT`` query,
@@ -630,7 +630,7 @@ Once you have a repository object, you can access all sorts of helpful methods::
630630
Of course, you can also issue complex queries, which you'll learn more
631631
about in the :ref:`doctrine-queries` section.
632632

633-
You can also take advantage of the useful ``findBy`` and ``findOneBy`` methods
633+
You can also take advantage of the useful ``findBy()`` and ``findOneBy()`` methods
634634
to easily fetch objects based on multiple conditions::
635635

636636
$repository = $this->getDoctrine()->getRepository('AppBundle:Product');
@@ -689,7 +689,7 @@ Updating an object involves just three steps:
689689

690690
#. fetching the object from Doctrine;
691691
#. modifying the object;
692-
#. calling ``flush()`` on the entity manager
692+
#. calling ``flush()`` on the entity manager.
693693

694694
Notice that calling ``$em->persist($product)`` isn't necessary. Recall that
695695
this method simply tells Doctrine to manage or "watch" the ``$product`` object.
@@ -780,7 +780,7 @@ DQL as you start to concatenate strings::
780780
$repository = $this->getDoctrine()
781781
->getRepository('AppBundle:Product');
782782

783-
// createQueryBuilder automatically selects FROM AppBundle:Product
783+
// createQueryBuilder() automatically selects FROM AppBundle:Product
784784
// and aliases it to "p"
785785
$query = $repository->createQueryBuilder('p')
786786
->where('p.price > :price')

0 commit comments

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