How do i access all actors who belongs to a movie (e.g. Matrix)
we start with on actors:
$this->Actor->find('all');
include the movies
$this->Actor->find('all',array('include'=>'movies'));
restrict the set using conditions
$this->Actor->find('all',
array('_movies.name'=>'Matrix'),
array('include'=>'movies')
);
FYI: There should be a closing single quote on the 'include the movies' section.
1 to 6 of 6