ToMany
data using our Data Abstraction Layer.Old category
with the ID oldId
to the product.myProductId
. This array of category arrays does not contain the old category ID, only the new one. Thus, the old category association should be removed and instead the new category should be assigned, right?ManyToMany
association and thus come with a mapping table, and a custom entity. You can find the entity definition for the association here.getEntityName
method.ReplacingData
:delete
method on the repository, just like you did before in the writing data guide.ManyToMany
, as well as OneToMany
associations.OneToOne
or ManyToOne
associations works just like expected via an update
call, e.g. for the tax of a product: