I have a cakephp application that i want to save posted to my base
I'm using following code in controller :
$ = $this->request->;
$['Link']['url'] = (',',$['Link']['url']);
$this->link->save($);
var_dump
:
array(1) { ["Link"]=> array(2) { ["url"]=> array(2) { [0]=> (8) "first" [1]=> (5) "second" } ["linkset_id"]=> (1) "4" } }
My table structure: links table --> ID, url, linkset_id
But i get following error Column not found: 1054 Unknown column 'Array' in 'field list'
How to save this to base ?