[eluser]BrianDHall[/eluser]
[quote author="umefarooq" date="1256578906"]Hi i just started working on DMZ really good, i have some questions, i have two tables both have relation tables name are content, menu. menu table has content_id as foreign key im able to save data in content table how can i save record in menu table while saving in content with content_id as foreign id.[/quote]
Hm, is this what you are going for:
Code:
$menu = new Menu();
// load menu with info...
$content = new Content()
// load content with info...
$content->save();
$menu->save($content)
This will save content, save menu, then save the relation of menu to content automatically - so long as you have your relationships setup in your model properly.