File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -1205,6 +1205,12 @@ is defined by the ``target`` parameter above (e.g. the ``homepage``).
1205
1205
Dynamically Encoding a Password
1206
1206
-------------------------------
1207
1207
1208
+ .. note ::
1209
+
1210
+ For historical reasons, Symfony uses the term *"password encoding" * when it
1211
+ should really refer to *"password hashing" *. The "encoders" are in fact
1212
+ `cryptographic hash functions `_.
1213
+
1208
1214
If, for example, you're storing users in the database, you'll need to encode
1209
1215
the users' passwords before inserting them. No matter what algorithm you
1210
1216
configure for your user object, the hashed password can always be determined
@@ -1410,5 +1416,6 @@ Learn More from the Cookbook
1410
1416
1411
1417
.. _`frameworkextrabundle documentation` : https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html
1412
1418
.. _`security advisories database` : https://github.com/FriendsOfPHP/security-advisories
1419
+ .. _`cryptographic hash functions` : https://en.wikipedia.org/wiki/Cryptographic_hash_function
1413
1420
.. _`HWIOAuthBundle` : https://github.com/hwi/HWIOAuthBundle
1414
1421
.. _`SensioDistributionBundle` : https://packagist.org/packages/sensio/distribution-bundle
Original file line number Diff line number Diff line change @@ -197,16 +197,18 @@ instead of the ``default`` entity manager.
197
197
query_builder
198
198
~~~~~~~~~~~~~
199
199
200
- **type **: ``Doctrine\ORM\QueryBuilder `` or a Closure
200
+ **type **: ``Doctrine\ORM\QueryBuilder `` or a Closure ** default **: `` null ``
201
201
202
202
Allows you to create a custom query for your choices. See
203
203
:ref: `ref-form-entity-query-builder ` for an example.
204
204
205
205
The value of this option can either be a ``QueryBuilder `` object, a Closure or
206
- ``null ``. When using a Closure, you will be passed the ``EntityRepository `` of
207
- the entity as the only argument and should return a ``QueryBuilder ``. If you'd
208
- like to display an empty list of entries, you can return ``null `` in the
209
- Closure.
206
+ ``null `` (which will load all entities). When using a Closure, you will be
207
+ passed the ``EntityRepository `` of the entity as the only argument and should
208
+ return a ``QueryBuilder ``.
209
+
210
+ If you'd like to display an empty list of entries, you can return ``null `` in
211
+ the Closure.
210
212
211
213
.. versionadded :: 2.8
212
214
Returning ``null `` in the Closure was introduced in Symfony 2.8.
You can’t perform that action at this time.
0 commit comments