fligtar%gmail.com 79ab3ee9fa Latest Addon MCV stuff
git-svn-id: svn://10.0.0.236/trunk@207874 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-18 22:02:32 +00:00

43 lines
1.9 KiB
PHP

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