Remove an entity from a Datasource (singular) marking it to remove in the context context

Hello,
is there a way to mark an entity in a Datsource to be removed on commit similar to how it goes with CollectionDatasource removeItem method?

Thanks,
Ilia.

Hi Ilia,

I believe you can cast the datasource to DatasourceImplementation and use its deleted() method.

2 Likes

Hello, Konstantin,
thanks a lot, it works perfectly!