Arbitrary Join count walkers solution

Possible solution for Arbitrary Join problem in pagination count
walkers:
https://groups.google.com/forum/#!topic/doctrine-user/rpPYCDNKOU8

Added a condition to test query component against  SelectStatement from
clause
 Root selection according other pagination tools

changed root selection in Walkers from looping queryComponents to using
$AST->fromClause as other walkers have
Added Tests for Arbitrary Join
fixed typos in tests
Updated Asset queries

Missing  braces and selected fields
CS Fixes
Changed calling $from[0] to using reset($from)

changed usage $from[0] according suggestion from @Ocramius  to use array
reset function
Add QueryBuilder::addSelect()
Merge pull request #1092 from birko/pagination-count-walker

[DDC-2794] Arbitrary Join count walkers solution
Extended the docs for mapping attributes precision and scale
Fixed small typo in documentation about extra lazy associations #DWEB-118
Merge pull request #1148 from naitsirch/hotfix/DWEB-118

[DWEB-118] Fixed small typo in documentation about extra lazy associations
- Fixed the basic entity persister so that versioned OneToOne entities can be created
- Created an IdentifierFlattener utility class
- Moved the logic for the flatten identifier method into the new utility class
- Replaced calls for private flattenIdentifier to use new utility
- Added appropriate unit tests
Merge pull request #1147 from naitsirch/master

Extended the docs for mapping attributes precision and scale
Allow orderBy to reference associations
Adding note about a minor BC break: d2 does not call `__clone` on new objects anymore.
Fixed missed initialization in CommitOrderCalculator.php
Fixing calls of schema-update tools

composer-generated binaries should be called without php interpreter.

Added reminder to update schema.
Update QueryBuilder reference documentation.

- Updated the signature of methods "from", "innerJoin" and "leftJoin"
  since it does not match the actual implementation.

- Added reference to the "join" method.
Merge pull request #1158 from josemalonsom/update-query-builder-ref-doc

Update QueryBuilder reference documentation.