public function model_before_create(Jam_Model $model) { if (!$model->{$this->_field}) { $model->update_token(); } }