I have a custom model object and want to persist it to the related database table. When I try to save the model, nothing happens. In case I do not enter required fields, I get an "Integrity constraint violation" exception. The inner message shows me, that the model is working on the right table. Saving a model did work that way in other situations before. But ofter some changes I have the described problem. Does anyone know, why the model cannot be saved and no error is thrown?
Code:
public function createModelEntry(\vendor\Module\Api\Data\MyModelInterface $modelData) { $modelData->save(); }