CREATE TABLE `il` (
`id` bigint(20) NOT NULL,
`il_adi` varchar(50) CHARACTER SET utf8 COLLATE utf8_turkish_ci DEFAULT NULL,
`slug` varchar(50) CHARACTER SET utf8 COLLATE utf8_turkish_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `ilce` (
`id` bigint(20) NOT NULL,
`il_id` bigint(20) DEFAULT NULL,
`ilce_adi` varchar(50) CHARACTER SET utf8 COLLATE utf8_turkish_ci DEFAULT NULL,
`slug` varchar(50) CHARACTER SET utf8 COLLATE utf8_turkish_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
我有 2 张关于城市 - 州的表格。ilce.il_id与 il.id 的关系我的意思是,
SELECT * FROM il JOIN ilce ON il.id = ilce.il_id
我该如何处理 Grocery Crud 关系?如何更改 set_relation 函数?