摘要: Let say we have three table as:[代码]From their structure we can know that product table and category table are MANY_MANY relation, category_product is the middle table, then how can we get the product records when we have a category.id?Set the modelsProduct:代码Code highlighting produced by Actipro Cod 阅读全文
posted @ 2010-12-11 19:22 DavidHHuan 阅读(782) 评论(0) 推荐(0) 编辑