CakePHP find with “contain”
问题 My model has many relationships to other tables/models, if i use contain parameter, for example to order by field in results of one model, all other tables in query results are missing, and must manually written in contain parameter, how can i get all related models data without manually writing it? $data = $this->Cv->find('first', array( 'contain' => array('Cv_experience' => array('order' => 'Cv_experience.start_year desc')))); 回答1: It sounds like you've been relying on the Model's recursive