How to Use ‘Contain’ Method in CakePHP 3.0 Query Builder

A basic query in CakePHP 3.0 is different than the ones used in CakePHP 2.0. In 3.0, the ORM (Object-relational mapping) used for database management related operations has completely changed. For example, if ‘Articles‘ is a model & we have to fetch some of the fields using query builder, the query would look something like this…