but i need to link to the hash tag on the different page, not on the 
same one.
anyways the latest commit already include correct links.
i've checked how it is done in the other part of documentation and 
simply copied the format.

On 23.6.2013 20:37, Wouter J wrote:
>
> In cookbook/security/entity_provider.rst:
>
> > @@ -191,24 +176,25 @@ For more details on each of these, see :class:`Symfony\\Component\\Security\\Cor
> >      because the :method:`Symfony\\Bridge\\Doctrine\\Security\\User\\EntityUserProvider::refreshUser`
> >      method reloads the user on each request by using the ``id``.
> >
> > -Below is an export of my ``User`` table from MySQL. For details on how to
> > +To generate missing setters and getters for your User entity, you can use ``php app/console doctrine:generate:entities Acme/UserBundle/Entity/User``.
> > +For more details see http://symfony.com/doc/current/book/doctrine.html#generating-getters-and-setters
>
> You can do it by using Sphinx references.
>
> Put this before the heading you'd like to link to:
>
> ..  _book-doctrine-generate-entities:
>
> Now you have created a reference in the docs with the name 
> |book-doctrine-generate-entities|.
>
> Now you can link to it from here using the |:ref:| role:
>
> For more details see ":ref:`book-doctrine-entities`"
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/symfony/symfony-docs/pull/2753/files#r4832862>.
>