There is a table "bookmark" with fields "advert_id" and "user_id" and model Bookmark
Every time user creates/updates a bookmark:
$bookmark = new Bookmark(); // ... $bookmark->save();
in DB profiling log I see:
SELECT COUNT(*) "rowcount" FROM `testdb`.`bookmark` WHERE `user_id` = ? AND `advert_id` = ? INSERT INTO `testdb`.`bookmark` (`user_id`, `advert_id`) VALUES (?, ?)
After adding new column 'id' as primary key there is no COUNT request.
Is this a bug or PDO necessity?
I don't wont to use primary key column, so currently I have to use raw sql for inserting/updating records into DB, which is much less convenient.