Skip to content

Commit 989073d

Browse files
committed
Merge branch '2.0' into 2.1
2 parents d701c1a + 198af63 commit 989073d

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

book/doctrine.rst

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ for you:
113113
[mysqld]
114114
collation-server = utf8_general_ci
115115
character-set-server = utf8
116-
116+
117117
Using SQLite
118118
~~~~~~~~~~~~
119-
119+
120120
If you want to use SQLite as your database, you need to set the path
121121
where your database file should be stored:
122122

@@ -356,8 +356,8 @@ doesn't replace your existing methods).
356356

357357
.. caution::
358358

359-
Keep in mind that Doctrine's entity generator produces simple getters/setters.
360-
You should check generated entities and adjust getter/setter logic to your own
359+
Keep in mind that Doctrine's entity generator produces simple getters/setters.
360+
You should check generated entities and adjust getter/setter logic to your own
361361
needs.
362362

363363
.. sidebar:: More about ``doctrine:generate:entities``
@@ -1445,6 +1445,16 @@ Some notable or interesting tasks include:
14451445
read the ":doc:`/bundles/DoctrineFixturesBundle/index`" entry of the
14461446
documentation.
14471447

1448+
.. tip::
1449+
1450+
This page shows working with Doctrine within a controller. You may also
1451+
want to work with Doctrine elsewhere in your application. The
1452+
:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::getDoctrine`
1453+
method of the controller returns the ``doctrine`` service, you can work with
1454+
this in the same way elsewhere by injecting this into your own
1455+
services. See :doc:`/book/service_container` for more on creating
1456+
your own services.
1457+
14481458
Summary
14491459
-------
14501460

reference/configuration/framework.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ assets_version_format
339339

340340
**type**: ``string`` **default**: ``%%s?%%s``
341341

342-
This specifies a `sprintf()`_ pattern that will be used with the `assets_version`_
342+
This specifies a :phpfunction:`sprintf` pattern that will be used with the `assets_version`_
343343
option to construct an asset's path. By default, the pattern adds the asset's
344344
version as a query string. For example, if ``assets_version_format`` is set to
345345
``%%s?version=%%s`` and ``assets_version`` is set to ``5``, the asset's path
@@ -501,4 +501,3 @@ Full Default Configuration
501501
it will start on demand now.
502502

503503
.. _`protocol-relative`: http://tools.ietf.org/html/rfc3986#section-4.2
504-
.. _`sprintf()`: http://php.net/manual/en/function.sprintf.php

0 commit comments

Comments
 (0)