<?php

/**
*
* @package Free Tube Script
* @version v1.0
* @copyright (c) 2011 Agriz
* @license GNU Public License Under Certain Conditions [Powered by should remain unchanged]
* @contact http://www.agrizlive.com
*
*/

	class Comment extends AppModel {
		var $name = 'Comment';
		var $belongsTo = array('User','Video');
		
		var $validate = array(
			'comment' => array(
				'contentNotEmpty' => array(
					'rule' => 'notEmpty',
					'required' => true,
					'message' => 'Comment should not be empty'
				),
				'contetnLength' => array(
					'rule' => array('minLength', 4),
					'message' => 'Comment should be 4 characters long'
				)	
			)
		);
	}
?>