Noted prePersist event only triggers on first persist

While probably obvious to a core doctrine developer, a user of doctrine would not necessarily know this without doing some digging
Merge pull request #573 from EvanK/patch-1

[Documentation] Noted prePersist event only triggers on first persist
Added YAML configuration example for "Simple Derived Identity" in "Composite and Foreign Keys as Primary Key" Tutorial
Update docs/en/reference/batch-processing.rst

If you have only $batchSize - 1 rows (amongst other cases), the entities are never flushed, you need a final flush outside the loop.

In the bulk insert you should also need a final flush if the number of entities inserted is not a multiple of the $batchSize.
Revert "allowed to pass filter objects to the configurator"

This reverts commit a9b4debe37370a4ff30141f8e4c6a444c226e06c. See the
discussion on the original PR:

https://github.com/doctrine/doctrine2/pull/434

Conflicts:
	lib/Doctrine/ORM/Configuration.php
[DDC-2019] Add support for expression in QueryBuilder#addOrderBy()
Add php 5.5 to the build matrix (travis)
Merge pull request #575 from naitsirch/master

Added YAML configuration example for "Simple Derived Identity" in Docs
Merge pull request #576 from acasademont/patch-1

Update docs/en/reference/batch-processing.rst
Fixed wrong return types in documentation.
Merge pull request #578 from BenMorel/docfix

Fix for wrong return types in documentation.
Merge pull request #569 from Ocramius/hotfix/pre-flush-event-args-params

Hotfix/pre flush event args params
Fix test failing when memcache extension is installed, but memcache server isnt.
[DDC-2256] Cleanup patch, move dependency on EntityManager out of ResultSetMapping and let AbstractQuery perform the translation.
Merge pull request #570 from Ocramius/cleanup/submodules-removal

Deprecation of PEAR/GIT/TAR autoloading
Proxy generation as of doctrine/common#168 - DCOM-96
Adding fix and tests for DDC-1734
Cleaning up logic of the proxy factory by moving closure generation to own private methods