<?php
/*
 * This model is used by the AlaxosLoggerComponent class
 * 
 * @author   Nicolas Rod <nico@alaxos.com>
 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
 * @link     http://www.alaxos.net
 */
class Log extends AlaxosAppModel
{
	var $name = 'Log';
	
	var $validate = array(
		'log_category_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'message1' => array(
			'notempty' => array(
				'rule' => array('notempty'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'LogCategory' => array(
			'className' => 'Alaxos.LogCategory',
			'foreignKey' => 'log_category_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
?>