<?php
class Issue extends AppModel {

	var $name = 'Issue';
	var $validate = array(
		'title' => array('notempty'),
		'description' => array('notempty'),
		'priority' => array('numeric'),
		'user_id' => array('numeric')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'user_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'IssueAction' => array(
			'className' => 'IssueAction',
			'foreignKey' => 'issue_id',
			'dependent' => false
		)
	);

}
?>