Stupid question. I have a Model, and I am trying to set a date field in the controller. What is the syntax for that? I am trying:
$myobj = MyModel::findFirstById($id); $myobj->setMyDate(date('Y-m-d')); $myobj->update();
and I am getting the error message "The record doesn't have a valid data snapshot"