How to get only query model data not relation data in cakephp

How to get only query model data not relation data in cakephp

Here, by using the contain= false we can strict the query with relational query.

$posts = $this->Post->find('all', array(
      'contain' => false,
);

source:

http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html

Leave a Comment