我想知道插入到表后受影响(插入)行的数目。我不知道如何在文档中这样做。更新返回受影响的行数。插入返回Nette\Database\Table\ActiveRow,如何获得它?
$affected = $context->table('author')->insert([
[
'name' => 'Sansa Stark',
'born' => null
], [
'name' => 'Arya Stark',
'born' => null
]
]);
bdump($affected); // Nette\Database\Table\ActiveRow - I need the number of inserted records发布于 2020-11-27 10:06:25
https://stackoverflow.com/questions/65035317
复制相似问题