public function fromArray(array $input) {
        $fillable = $this->getFillableFields();

        foreach($input as $key => $value) {
            if(in_array($key, $fillable)) {
                $this->{'set' . ucfirst($key)}($value);
            } else {
                throw new MassAssignmentException($key);
            }
        }
    }