hardcoding

This commit is contained in:
wclouser%mozilla.com 2006-07-10 23:53:35 +00:00
parent 8cbf55fa0f
commit 14cc7e1603
2 changed files with 10 additions and 2 deletions

View File

@ -11,7 +11,11 @@ class Application extends AppModel {
//var $hasOne = array('Result');
var $hasAndBelongsToMany = array(
'Collection' => array( 'className' => 'Collection')
'Collection' => array( 'className' => 'Collection',
'joinTable' => 'applications_collections',
'foreignKey' => 'application_id',
'associationForeignKey' => 'collection_id'
)
);
var $Sanitize;

View File

@ -3,7 +3,11 @@ class Collection extends AppModel {
var $name = 'Collection';
var $hasAndBelongsToMany = array(
'Application' => array('className' => 'Application'),
'Application' => array( 'className' => 'Application',
'joinTable' => 'applications_collections',
'foreignKey' => 'collection_id',
'associationForeignKey' => 'application_id'
),
'Choice' => array('className' => 'Choice')
);