<?php
class OrderModel extends RelationModel {
	protected $_link = array(
		'User'=>array(
			'mapping_type'  => BELONGS_TO,
//          'class_name'    => 'Users',
			'mapping_name'  => 'user',
			'foreign_key'   => 'user_id',//关联id
		),
	);
}