@@ -119,7 +119,7 @@ for you:
119
119
.. sidebar :: Setting up the Database to be UTF8
120
120
121
121
One mistake even seasoned developers make when starting a Symfony project
122
- is forgetting to setup default charset and collation on their database,
122
+ is forgetting to set up default charset and collation on their database,
123
123
ending up with latin type collations, which are default for most databases.
124
124
They might even remember to do it the very first time, but forget that
125
125
it's all gone after running a relatively common command during development:
@@ -339,7 +339,7 @@ see the :ref:`book-doctrine-field-types` section.
339
339
340
340
You can also check out Doctrine's `Basic Mapping Documentation `_ for
341
341
all details about mapping information. If you use annotations, you'll
342
- need to prepend all annotations with ``ORM\ `` (e.g. ``ORM\Column(..) ``),
342
+ need to prepend all annotations with ``ORM\ `` (e.g. ``ORM\Column(... ) ``),
343
343
which is not shown in Doctrine's documentation. You'll also need to include
344
344
the ``use Doctrine\ORM\Mapping as ORM; `` statement, which *imports * the
345
345
``ORM `` annotations prefix.
@@ -357,7 +357,7 @@ see the :ref:`book-doctrine-field-types` section.
357
357
358
358
.. note ::
359
359
360
- When using another library or program (ie . Doxygen) that uses annotations,
360
+ When using another library or program (e.g . Doxygen) that uses annotations,
361
361
you should place the ``@IgnoreAnnotation `` annotation on the class to
362
362
indicate which annotations Symfony should ignore.
363
363
@@ -385,7 +385,7 @@ a regular PHP class, you need to create getter and setter methods (e.g. ``getNam
385
385
386
386
$ php app/console doctrine:generate:entities AppBundle/Entity/Product
387
387
388
- This command makes sure that all of the getters and setters are generated
388
+ This command makes sure that all the getters and setters are generated
389
389
for the ``Product `` class. This is a safe command - you can run it over and
390
390
over again: it only generates getters and setters that don't exist (i.e. it
391
391
doesn't replace your existing methods).
@@ -432,7 +432,7 @@ mapping information) of a bundle or an entire namespace:
432
432
.. note ::
433
433
434
434
Doctrine doesn't care whether your properties are ``protected `` or ``private ``,
435
- or whether or not you have a getter or setter function for a property.
435
+ or whether you have a getter or setter function for a property.
436
436
The getters and setters are generated here only because you'll need them
437
437
to interact with your PHP object.
438
438
@@ -770,7 +770,7 @@ already did in the previous section).
770
770
771
771
The DQL syntax is incredibly powerful, allowing you to easily join between
772
772
entities (the topic of :ref: `relations <book-doctrine-relations >` will be
773
- covered later), group, etc. For more information, see the official Doctrine
773
+ covered later), group, etc. For more information, see the official
774
774
`Doctrine Query Language `_ documentation.
775
775
776
776
Custom Repository Classes
@@ -833,7 +833,7 @@ used earlier to generate the missing getter and setter methods:
833
833
$ php app/console doctrine:generate:entities AppBundle
834
834
835
835
Next, add a new method - ``findAllOrderedByName() `` - to the newly generated
836
- repository class. This method will query for all of the ``Product `` entities,
836
+ repository class. This method will query for all the ``Product `` entities,
837
837
ordered alphabetically.
838
838
839
839
.. code-block :: php
@@ -1352,7 +1352,7 @@ Doctrine's `Lifecycle Events documentation`_.
1352
1352
transforming data in the entity (e.g. setting a created/updated field,
1353
1353
generating a slug value).
1354
1354
1355
- If you need to do some heavier lifting - like perform logging or send
1355
+ If you need to do some heavier lifting - like performing logging or sending
1356
1356
an email - you should register an external class as an event listener
1357
1357
or subscriber and give it access to whatever resources you need. For
1358
1358
more information, see :doc: `/cookbook/doctrine/event_listeners_subscribers `.
@@ -1362,7 +1362,7 @@ Doctrine's `Lifecycle Events documentation`_.
1362
1362
Doctrine Field Types Reference
1363
1363
------------------------------
1364
1364
1365
- Doctrine comes with a large number of field types available. Each of these
1365
+ Doctrine comes with numerous field types available. Each of these
1366
1366
maps a PHP data type to a specific column type in whatever database you're
1367
1367
using. For each field type, the ``Column `` can be configured further, setting
1368
1368
the ``length ``, ``nullable `` behavior, ``name `` and other options. To see a
0 commit comments