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 関数を変更するにはどうすればよいですか?