<?php

//視圖模型,假設是一對一，其實 不是多對多，暫時用吧
class RoleViewModel extends ViewModel {
	
	protected $viewFields = array(
		'role_user' => array(
		'user_id' => 'user_id',
		//'_type' => 'LEFT'
		),
			
		'role' => array(
		'name' => 'name',//顯示字段name as role
		'remark' => 'remark',//顯示字段name as role
		'status' => 'rstatus',
		'_on' => 'role_user.role_id = role.id',//_on 對應上面LEFT關聯條件
		),
		/*	*/
		

	);
}

?>