Migration guide
#
Migration from v8.x.x to v9.x.x#
Saving a formIn the v8
version, service.save()
was called automatically.
From the version v9
, the dependency to services is removed and instead of calling service.save
, formObject.save
is called.
The easiest way to migrate from v8
to v9
is to create .save(model)
method in the form object and call service.save
from there.
#
Introducing genericsFrom the version v9
, FormObject
and FormStore
use generics.
When extending FormObject
or FormStore
class model class must be provided. I.e. for User
model - FormObject<User>
and FormStore<User>
.
#
Method decoratorsFrom the version v9
, build{propertyName}
is deprecated and decorator @BuildControl
should be used for building other form structures, for example ExtendedFormControl
instead of ExtendedFormArray
for HasMany
relationship.
From the version v9
, create{propertyName}FormObject
is deprecated and decorator @BuildRelationshipFormObject should be used when creating nested form objects for any model properties decorated with @BelongsTo
or @HasMany
decorators.
#
Deprecated methodsThe clear
method on ExtendedFormArray
is renamed to clearValue
. The method's behaviour didn't change.