I have two models
Rest (id, name .....) Operating_hours(id, open, close, rest_id)
when i try to save a record from Restaurant add form. it saves only open and close time but not the reference id at rest_id.
$this->Restaurant->create();
if($this->Restaurant->saveAll($this->data, array('validate' => 'first'))) {
$this->Session->setFlash(__('The restaurant has been saved', true));
//$this->redirect(array('action' => 'index'));
} else {
$this->Session->setFlash(__('The restaurant could not be saved. Please, try again.', true));
}