fligtar%gmail.com 6b15873bf5 apparently forgot these last time
git-svn-id: svn://10.0.0.236/trunk@208879 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-31 04:50:44 +00:00

54 lines
2.3 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'=> '',
),
);
var $validate = array(
'addon_id' => VALID_NUMBER,
'version' => VALID_NOT_EMPTY
);
}
?>