Remove duplicates in the list of mapped entities in the profile
bug #302 Remove duplicates in the list of mapped entities in the profile (Alexandr Smaga)

This PR was squashed before being merged into the 1.2.x-dev branch (closes #302).

Discussion
----------

Remove duplicates in the list of mapped entities in the profile

Mapping debug: duplicate entities:
   -  added check that entity is not already collected

fix of #296

Commits
-------

f7d94ae Remove duplicates in the list of mapped entities in the profile
Replace doctrine.orm.metadata.annotation_reader with annotation_reader.
This fixes the problem of doctrine.orm.metadata.annotation_reader being removed by  Symfony\Component\DependencyInjection\Compiler\RemovePrivateAliasesPass.
Merge pull request #324 from boekkooi/issue-283

Replace doctrine.orm.metadata.annotation_reader with annotation_reader.
Added support for server_version connection parameter
feature #329 Added support for server_version connection parameter (adrianolek)

This PR was squashed before being merged into the 1.3.x-dev branch (closes #329).

Discussion
----------

Added support for server_version connection parameter

Doctrine DBAL 2.5 will support platform version autodetection, additionally it allows specifying serverVersion connection parameter:

> which the user can pass to skip platform autodetection and define the desired platform version straight away. This is also required for drivers that cannot return the database server version without an additional query (performance reasons).
> https://github.com/doctrine/dbal/pull/487

In symfony it can be useful eg. when warming up cache during build, so you don't need the db connection, but dbal 2.5 will try to autodetect server version anyway eg. during entity class metadata loading, then it will throw an exception because of unavailable connection. server_version parameter can be used to skip the autodetection.

Commits
-------

523b59a Added support for server_version connection parameter
Added a way to enable auto_mapping option using multipe entity managers