mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
hardcoding
This commit is contained in:
parent
8cbf55fa0f
commit
14cc7e1603
@ -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;
|
||||
|
@ -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')
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user