class ProductCategoryRelationModel extends RelationModel {
protected $tableName = 'pro_category';
protected $_link = array(
'product' => array(
'mapping_type' => HAS_MANY,
'foreign_key' => 'cat_id',
'mapping_fields' => 'pro_img',
'mapping_order' => 'issue_time DESC'
),
);
}调用模块$this->proCat = D('ProductCategoryRelation')->relation(true)->select();结果是如题,请问各路大神为何~~~~~~小弟是新手 最佳答案