File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 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``).
12201220Dynamically Encoding a Password
12211221-------------------------------
12221222
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+
12231229If, for example, you're storing users in the database, you'll need to encode
12241230the users' passwords before inserting them. No matter what algorithm you
12251231configure for your user object, the hashed password can always be determined
@@ -1428,5 +1434,6 @@ Learn More from the Cookbook
14281434
14291435.. _`frameworkextrabundle documentation` : https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html
14301436.. _`security advisories database` : https://github.com/FriendsOfPHP/security-advisories
1437+ .. _`cryptographic hash functions` : https://en.wikipedia.org/wiki/Cryptographic_hash_function
14311438.. _`HWIOAuthBundle` : https://github.com/hwi/HWIOAuthBundle
14321439.. _`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.
181181query_builder
182182~~~~~~~~~~~~~
183183
184- **type **: ``Doctrine\ORM\QueryBuilder `` or a Closure
184+ **type **: ``Doctrine\ORM\QueryBuilder `` or a Closure ** default **: `` null ``
185185
186186Allows you to create a custom query for your choices. See
187187:ref: `ref-form-entity-query-builder ` for an example.
188188
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 ``.
192193
193194Overridden Options
194195------------------
You can’t perform that action at this time.
0 commit comments