containable

Cakephp contain is included in query

Cakephp contain is included in query
When I run the following code the Containable behaviour does not work.I don't want to use a manual join!$data = $this->Variant->find('first', array( 'contain' => array('VariantValue'), 'conditions' => array( 'Variant.product_id' => $product

In CakePHP how to make Containable behavior cooperate with Tree behavior

In CakePHP how to make Containable behavior cooperate with Tree behavior
I have this problem with containable, that I have Categories model that behaves like a tree:class Category extends AppModel { public $actsAs = ['Tree', 'Containable']; public $hasMany = [ 'Novelty' => [ 'className' => 'Novelty', 'foreignKey' => '

cakephp contain

cakephp contain
I have a problem with contain :( , let me explain:Models Relations:Client ->hasMany ->Card ->hasAndBelongsToMany ->Partner ->hasMany ->ContactWhat i need is to get all partners and contacts of Client with codigo = 24150 and Contacts with
What Others Are Reading