我从 PRADO php 框架开始,我有一个简单的问题:如何获取最后插入记录的主键?我的代码如下:
$studentRecord = new StudentRecord;
$studentRecord->Name = $this->txtName->SafeText;
$studentRecord->ContactNumber = $this->txtContactNo->SafeText;
$studentRecord->save();
// $studentId = ???
谢谢!