Skip to content

Commit

Permalink
Merge branch '2.3' into 2.7
Browse files Browse the repository at this point in the history
Conflicts:
	book/security.rst
  • Loading branch information
wouterj committed May 21, 2016
2 parents e29b7ab + 31de26f commit 44e170b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,12 @@ is defined by the ``target`` parameter above (e.g. the ``homepage``).
Dynamically Encoding a Password
-------------------------------

.. note::

For historical reasons, Symfony uses the term *"password encoding"* when it
should really refer to *"password hashing"*. The "encoders" are in fact
`cryptographic hash functions`_.

If, for example, you're storing users in the database, you'll need to encode
the users' passwords before inserting them. No matter what algorithm you
configure for your user object, the hashed password can always be determined
Expand Down Expand Up @@ -1428,5 +1434,6 @@ Learn More from the Cookbook

.. _`frameworkextrabundle documentation`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html
.. _`security advisories database`: https://github.com/FriendsOfPHP/security-advisories
.. _`cryptographic hash functions`: https://en.wikipedia.org/wiki/Cryptographic_hash_function
.. _`HWIOAuthBundle`: https://github.com/hwi/HWIOAuthBundle
.. _`SensioDistributionBundle`: https://packagist.org/packages/sensio/distribution-bundle
9 changes: 5 additions & 4 deletions reference/forms/types/entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,15 @@ instead of the ``default`` entity manager.
query_builder
~~~~~~~~~~~~~

**type**: ``Doctrine\ORM\QueryBuilder`` or a Closure
**type**: ``Doctrine\ORM\QueryBuilder`` or a Closure **default**: ``null``

Allows you to create a custom query for your choices. See
:ref:`ref-form-entity-query-builder` for an example.

The value of this option can either be a ``QueryBuilder`` object or a Closure.
When using a Closure, you will be passed the ``EntityRepository`` of the entity
as the only argument and should return a ``QueryBuilder``.
The value of this option can either be a ``QueryBuilder`` object, a Closure or
``null`` (which will load all entities). When using a Closure, you will be
passed the ``EntityRepository`` of the entity as the only argument and should
return a ``QueryBuilder``.

Overridden Options
------------------
Expand Down

0 comments on commit 44e170b

Please sign in to comment.