create($attributes); } catch (Exception $e) { return false; } /*if ($class != null) { $model->class()->associate($class); $model->save(); }*/ return $model; } }