$this->Release->recursive = 0;
$this->paginate['Release']['joins'] =
array(
array(
'table' => ' game_potential_amazon_matches',
'alias' => 'PotentialAmazonMatch',
'type' => 'inner',
'conditions' =>
array(
'PotentialAmazonMatch.release_id = Release.id'
)
)
);
$this->set('releases', $this->paginate('Release'));
$this->set('title_for_layout', 'Release with Potential Amazon Matches)');
Я получаю несколько записей и просто хотел бы стать отличным от Release.id?