Be picky setting the primary (originator) query as a Query parameter.

`\Cake\ORM\Query::$_primary = true` only for the primary query, every other
query originated from that one will have the value set to `false`.

`Query::primary()` will return the query `_primary` value.
`Query::primary(true)` will mark the query as being the primary.
`Query::primary(false)` will mark the query as being a byproduct.
Mark belongsTo and count queries as not primary too.
Update Query::$primary and Query::primary() names.

To Query::eagerLoaded and Query::eagerLoaded(), respectively. To reflect
the real purpose of the variable/function.
Change reference to the helperclasses in the docblock
fix: 0 rows affected treated as an error

Updating dirty entities fails when dirty properties are "chaged" to same
values.

Rely on SQLSTATE code instead of counting affected rows.

Reproduce this issue:

$article->accessible('*', true);
$article->set($sameValuesFromFormSubmit); // gets marked as dirty
$this->Articles->save($article); // return false [0 rows affected]
Merge pull request #3064 from Baumzebra/3.0

Change reference to the helperclasses in the docblock.

Fixes #3063
Add tests for #3065

When an entity is dirty but contains no actual changes to the row we
should count that as successful update.

Refs #3065
Merge branch 'empty-entity-save' into 3.0

Fixes #3065
Merge branch '3.0' of github.com:cakephp/cakephp into 3.0
Merge branch '3.0-source-query' of https://github.com/bar/cakephp into bar-3.0-source-query
Fixed Query::eagerLoaded() and added test
Fixed tyopo
Just making the names look the same (for easy phpunit --filter with a regex).
Merge pull request #3070 from bar/3.0-test

Just making the names look the same.
Fix issues with model bake.

Setting the classname on associations requires the fully namespaced
classname, not just a short alias. Exclude the short alias form of
a classname from the association creation.
settings are not used when creating a task
Merge pull request #3074 from AD7six/3.0-config-console

Remove unused function argument
Revert "settings are not used when creating a task"

This reverts commit e912c9cc0f7749f1cceba60e5ef8ad0ab3550fd2.

The parameter is present only because that's the signature of the parent
method
Merge pull request #3075 from AD7six/3.0-config-console

Underp!
do not force sqlite on all builds

This effectively overrides env variables during travis runs