setSequenceName

setSequenceName(string $sequenceName)

Postgres database recognise the insert id with a sequence key. This key can be easily guessed automatically but there are many cases that we are adding the key as a different name. In that case we can use the function:

$crud->setSequenceName('my_sequence_name');

so we can customise the name of the sequence so it will get the insertId after an insert operation.