Hey Guys,
I've got a few forms on the same page, generated by a ViewModel.
The original CRUD code was generated using oil, and I haven't changed any of the code for them.
When I'm trying to do an edit on a particular model, I get this error back;
OutOfBoundsException [ Error ]: Property "updated_at" not found for Model_Cv_Question.
Any idea's of why this would happen ?
I see in the Model file created by oil has this code in.
'Orm\Observer_CreatedAt' => array('before_insert'),
'Orm\Observer_UpdatedAt' => array('before_save'),
How do I add that property when saving ? or can I take it out of the model ?
The column needs to be present in the table, no way to save it otherwise.
Adding it to the model is like any other property: http://fuelphp.com/docs/packages/orm/creating_models.html#propperties
Or if you don't use the $_properties setting and just mysql auto-detect, adding the column to the DB would be enough.