Hello! I'v created two models.
Event_model and Tasks_model
I'v added this string in Event_model
public $has_many = array('tasks' => array(FUEL_FOLDER => 'tasks_model'));
That's all i did.
When i save my Event_model row i get this error:
Unknown column 'Array' in 'field list'
What i forgot to do?
Comments
public $has_many = array('tasks' => array('app'=> 'tasks_model'));
OR just:
public $has_many = array('tasks' => 'tasks_model');
VALUES ('', '1', Array, '2015-03-04', '1')
i suppos it should be string or something in query, but i see PHP Array there
public $serialized_fields = array('my_field');
This will serialize the data using JSON and unserialize it when you retrieve it as an array when using find_ methods on the model.