mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
a90838f83e
Removed workarounds in models to adapt to update db schema. Will check in sql once the indexes have been updated (shortly).
15 lines
492 B
PHP
15 lines
492 B
PHP
<?php
|
|
class Mirror extends AppModel
|
|
{
|
|
var $name = 'Mirror';
|
|
var $hasAndBelongsToMany = array('regions' =>
|
|
array( 'className' => 'Region',
|
|
'joinTable' => 'mirror_regions',
|
|
'foreignKey' => 'mirror_id',
|
|
'associationForeignKey' => 'region_id',
|
|
'order' => 'regions.name desc',
|
|
'uniq' => true )
|
|
);
|
|
}
|
|
?>
|