<?php

//視圖模型
class MemberViewModel extends ExViewModel {
	
	protected $viewFields = array(
		'member' => array('*','_type' => 'LEFT'),
		'membergroup' => array(
		'name' => 'groupname',
		'_on' => 'member.groupid = membergroup.id',//_on 對應上面LEFT關聯條件
		'_type' => 'LEFT'
		),		
		'memberdetail' => array(
		'*',//顯示字段name as model
		'_on' => 'member.id = memberdetail.userid',//_on 對應上面LEFT關聯條件
		),
	);
}

?>