Я получаю следующую ошибку при попытке сохранить.
SQL Query: INSERT INTO `table`.`users` (`username`, `password`, `group_id`, `applications`, `modified`, `created`) VALUES ('asdasd', '23ad37a839e26fc46a1f6640861a47305aea5d46', 3, Array, '2012-04-03 02:12:19', '2012-04-03 02:12:19')
вот код для множественного выбора
echo $this->Form->input('User.applications',array('options'=>$options,'multiple'=>'multiple'));
и вызывается метод add, который:
if ($this->request->is('post')) {
//debug($this->request);exit;
$this->User->create();
if ($this->User->saveAll($this->request->data)) {
$this->Session->setFlash(__('The user has been saved'));
$this->redirect(array('action' => 'index'));
} else {
$this->Session->setFlash(__('The user could not be saved. Please, try again.'));
}
}
$groups = $this->User->Group->find('list');
$this->set(compact('groups'));
спасибо!