<?php
class ArticleGroup extends AppModel {
	var $name = 'ArticleGroup';
	//var $order = array('ArticleGroup.name ASC');
	//var $displayField = 'name';
	var $validate = array(
		'group_code' => array(
			'notempty' => array(
				'rule' => array('notempty'),
			),
			'unique' => array(
				'rule' => array('unique'),
			),
		),
		'name' => array(
			'notempty' => array(
				'rule' => array('notempty'),
			),
			'unique' => array(
				'rule' => array('unique'),
			),
		),
	);
	
	/*
	var $hasMany = array(
		'Article' => array(
			'className' => 'Article',
			'foreignKey' => 'article_group_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);
	*/

}
