Hello,
I have the below Json, How do I store the "geo" object ?
page = {
'name' => 'one',
'intro' => 'sample' ,
'geo' => { '_id' => {
'$id' => '2332azcvxc',
'name' => 'india'
}
}
}
Why the below lines are not working ?
$page = new Page();
$geo = new Geo();
$page->geo = $geo;
$page->save();
Any suggestion please ?
Thanks, Raja K