Skip to content

Commit 563bab8

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: [#6892] The provider is called `memory` Fix typos Update templating.rst Update templating.rst Adds bin folder creation instruction service_container : fix php Definition instance [Routing] Fix a route path in a routing example Minor unrelated spacing fixes Update doctrine.rst
2 parents f11f34b + 2628e54 commit 563bab8

File tree

6 files changed

+17
-10
lines changed

6 files changed

+17
-10
lines changed

doctrine/associations.rst

+11-5
Original file line numberDiff line numberDiff line change
@@ -168,20 +168,25 @@ own a collection of its related ``Product`` objects.
168168

169169
.. note::
170170

171-
The code in the constructor is important. Rather than being instantiated
171+
The code in the constructor is important. Rather than being instantiated
172172
as a traditional ``array``, the ``$products`` property must be of a type
173173
that implements Doctrine's ``Collection`` interface. In this case, an
174174
``ArrayCollection`` object is used. This object looks and acts almost
175175
*exactly* like an array, but has some added flexibility. If this makes
176176
you uncomfortable, don't worry. Just imagine that it's an ``array``
177177
and you'll be in good shape.
178178

179+
.. seealso::
180+
181+
To understand ``inversedBy`` and ``mappedBy`` usage, see Doctrine's
182+
`Association Updates` documentation.
183+
179184
.. tip::
180185

181-
The targetEntity value in the metadata used above can reference any entity
182-
with a valid namespace, not just entities defined in the same namespace. To
183-
relate to an entity defined in a different class or bundle, enter a full
184-
namespace as the targetEntity.
186+
The targetEntity value in the metadata used above can reference any entity
187+
with a valid namespace, not just entities defined in the same namespace. To
188+
relate to an entity defined in a different class or bundle, enter a full
189+
namespace as the targetEntity.
185190

186191
Now that you've added new properties to both the ``Product`` and ``Category``
187192
classes, tell Doctrine to generate the missing getter and setter methods for you:
@@ -407,3 +412,4 @@ Doctrine's `Association Mapping Documentation`_.
407412
statement, which *imports* the ``ORM`` annotations prefix.
408413

409414
.. _`Association Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/association-mapping.html
415+
.. _`Association Updates`: http://docs.doctrine-project.org/en/latest/reference/unitofwork-associations.html

form/form_dependencies.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
How to Access Services or Config from Inside a Form
22
===================================================
33

4-
Sometimes, you may need to access a :doc:`services </service_container>` or other
4+
Sometimes, you may need to access a :doc:`service </service_container>` or other
55
configuration from inside of your form class. To do this, you have 2 options:
66

77
1) Pass Options to your Form
@@ -45,7 +45,7 @@ create your form::
4545
}
4646

4747
Finally, the ``entity_manager`` option is accessible in the ``$options`` argument
48-
if your ``buildForm`` method::
48+
of your ``buildForm`` method::
4949

5050
// src/AppBundle/Form/TaskType.php
5151
// ...

routing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ By adding a *default* value:
333333
334334
return $collection;
335335
336-
Now, when the user goes to ``/page``, the ``blog_list`` route will match and ``$page``
336+
Now, when the user goes to ``/blog``, the ``blog_list`` route will match and ``$page``
337337
will default to a value of ``1``.
338338

339339
.. index::

service_container/factories.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ configure the service container to use the
8888
8989
$container->register('app.newsletter_manager_factory', 'AppBundle\Email\NewsletterManagerFactory');
9090
91-
$newsletterManager = new Definition();
91+
$newsletterManager = new Definition('AppBundle\Email\NewsletterManager');
9292
9393
// call a method on the specified service
9494
$newsletterManager->setFactory(array(

setup.rst

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ executable that needs to be installed on your system only once:
1717
.. code-block:: bash
1818
1919
# Linux and macOS systems
20+
$ sudo mkdir -p /usr/local/bin
2021
$ sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony
2122
$ sudo chmod a+x /usr/local/bin/symfony
2223

templating.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ with alternating ``odd``, ``even`` classes:
108108

109109
.. code-block:: html+twig
110110

111-
{% for i in 0..10 %}
111+
{% for i in 1..10 %}
112112
<div class="{{ cycle(['odd', 'even'], i) }}">
113113
<!-- some HTML here -->
114114
</div>

0 commit comments

Comments
 (0)