add _orignal to Entity and fix Counter cache update
Merge pull request #4811 from cakephp/controller-isaction

Controller isaction
fix PHPCS
Fix failing test cases and add missing classname.

Also make pj() not output when debug is off. This makes it work like
other debugging functions (pr, debug, stackTrace)

Refs #4791
Add Model.initialize event.

This event follows the same pattern as Controller.initialize where it is
fired *after* the initialize() method and after other subscribers have
been attached. The initialize() method is *not* an event subscriber as
it is intended to be a post-constructor hook method like
Controller::initialize().

This will likely result in Component::initialize() being modified to be
conformant. There have been a number of reported issues in the past
around Component::initialize() not being called. It would be nice to put
those issues to rest and have consistency across the framework.
Make Component::initialize() work like other initialize() methods.

Make Component::initialize() consistent with Controller and Table, this
makes the framework easier to understand as methods with the same name
work consistently everywhere. While I'm not totally sure about what to
do with the Controller.initialize event hook in components, I feel this
change is a good one even though it breaks existing API compatibility.

The primary use of this event hook was RequestHandler which has been
updated to not rely on the event hook. I've also ensure that
Controllers always have a request and response object as that was
causing me some grief and logically makes sense.
Add Component::beforeFilter

This method is an event listener that listens to the
Controller.initialize event. I decided to copy the controller method
name so there was some semblance of consistency. This may be a bad idea
though.
remove multiple method call
Merge pull request #4809 from cakephp/3.0-countercache

3.0 countercache
Cache option for \Cake\ORM\Table::get
more unique cache key,
improved API
use phpcs via composer
Merge pull request #4822 from antograssiot/3.0-travis

use phpcs via composer in Travis
Use === for string comparison.
Fix PHPCS error and add doc block.
Add test for #4804

Add a failing test for the associated loading failure.
Remove semicolons from short echos in bake templates
Merge pull request #4825 from bcrowe/3.0-rm-semi-short

3.0 - Remove semicolons from short echos in bake templates
Skip hydrating associations when they are empty.

When all columns are null/[] the related entity should be skipped. While
the null case was added in 34109118c7a43a221b099e0527588ea3d265b694, the
case for associated entities with deeper non-joined associations that
are also empty was missed. By treating [] as empty we cover that case as
well.

Fixes #4804
Remove AS from table aliases.

Having AS causes issues with Oracle. While this is not a core driver,
the AS keyword is not required by any supported driver.

Refs #4830
Merge pull request #4755 from cakephp/3.0-slug-dash

Change default replacement for Inflector::slug().