<?php
//用于视图查询
class TagViewModel extends ViewModel {
	//视图定义
	protected $viewFields = array (
		 'Tag'=>array('*','tag_id'=>'chanpin_tag_id','tag_name'=>'chanpin_tag_name'),
		 'Chanpin'=>array('*', '_on'=>'Tag.tag_id = Chanpin.chanpin_id'),
	);
}
?>