File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -1220,6 +1220,12 @@ is defined by the ``target`` parameter above (e.g. the ``homepage``).
1220
1220
Dynamically Encoding a Password
1221
1221
-------------------------------
1222
1222
1223
+ .. note ::
1224
+
1225
+ For historical reasons, Symfony uses the term *"password encoding" * when it
1226
+ should really refer to *"password hashing" *. The "encoders" are in fact
1227
+ `cryptographic hash functions `_.
1228
+
1223
1229
If, for example, you're storing users in the database, you'll need to encode
1224
1230
the users' passwords before inserting them. No matter what algorithm you
1225
1231
configure for your user object, the hashed password can always be determined
@@ -1428,5 +1434,6 @@ Learn More from the Cookbook
1428
1434
1429
1435
.. _`frameworkextrabundle documentation` : https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html
1430
1436
.. _`security advisories database` : https://github.com/FriendsOfPHP/security-advisories
1437
+ .. _`cryptographic hash functions` : https://en.wikipedia.org/wiki/Cryptographic_hash_function
1431
1438
.. _`HWIOAuthBundle` : https://github.com/hwi/HWIOAuthBundle
1432
1439
.. _`SensioDistributionBundle` : https://packagist.org/packages/sensio/distribution-bundle
Original file line number Diff line number Diff line change @@ -181,14 +181,15 @@ instead of the ``default`` entity manager.
181
181
query_builder
182
182
~~~~~~~~~~~~~
183
183
184
- **type **: ``Doctrine\ORM\QueryBuilder `` or a Closure
184
+ **type **: ``Doctrine\ORM\QueryBuilder `` or a Closure ** default **: `` null ``
185
185
186
186
Allows you to create a custom query for your choices. See
187
187
:ref: `ref-form-entity-query-builder ` for an example.
188
188
189
- The value of this option can either be a ``QueryBuilder `` object or a Closure.
190
- When using a Closure, you will be passed the ``EntityRepository `` of the entity
191
- as the only argument and should return a ``QueryBuilder ``.
189
+ The value of this option can either be a ``QueryBuilder `` object, a Closure or
190
+ ``null `` (which will load all entities). When using a Closure, you will be
191
+ passed the ``EntityRepository `` of the entity as the only argument and should
192
+ return a ``QueryBuilder ``.
192
193
193
194
Overridden Options
194
195
------------------
You can’t perform that action at this time.
0 commit comments