There is a table Test (id(primary AUTO_INCREMENT), text)
I do:
$test = new Test(); $test -> text = 'test1'; $test -> save();
I assume that the auto-increment value is written in the id
field, but no ... the record is not saved at all. $test->getErrors()
says "ID cannot be blank."
If you do this, then everything works:
$test -> id = 1; $test -> text = 'test1'; $test -> save();
How to do so not to explicitly specify the value of the id
field?