I have a custom table with identity column id and text column otherColumn and I'm trying to add a row into the table with my custom value.
$model->setOtherColumn($otherColumnValue)->save();
Above code works and inserts a row with next occurring value in "id" column. But when I use below code.
$model->setId($customValue)->setOtherColumn($otherColumnValue)->save();
Row is not inserted in the table.
How to insert custom value in identity column?