sancus%off.net 73904091fe initial import of models and other app files
git-svn-id: svn://10.0.0.236/trunk@207393 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-14 23:54:58 +00:00

49 lines
2.2 KiB
PHP

<?php
class Version extends AppModel
{
var $name = 'Version';
var $belongsTo = array('Addon' =>
array('className' => 'Addon',
'conditions' => '',
'order' => '',
'foreignKey' => 'addon_id'
)
);
var $hasMany = array('Review' =>
array('className' => 'Review',
'conditions' => '',
'order' => '',
'limit' => '',
'foreignKey' => 'version_id',
'dependent' => true,
'exclusive' => false,
'finderSql' => ''
),
'File' =>
array('className' => 'File',
'conditions' => '',
'order' => '',
'limit' => '',
'foreignKey' => 'version_id',
'dependent' => true,
'exclusive' => false,
'finderSql' => ''
)
);
var $hasAndBelongsToMany = array('Application' =>
array('className' => 'Application',
'joinTable' => 'applications_versions',
'foreignKey' => 'application_id',
'associationForeignKey'=> 'version_id',
'conditions' => '',
'order' => '',
'limit' => '',
'unique' => false,
'finderSql' => '',
'deleteQuery'=> '',
),
);
}
?>