How to get primary key after calling ActiveRecord save() method PRADO?

Matt--

New Member
I am starting out with PRADO php framework and i have a quick question: How to get the Primary Key of the last inserted record? My codes are as follow:\[code\]$studentRecord = new StudentRecord;$studentRecord->Name = $this->txtName->SafeText;$studentRecord->ContactNumber = $this->txtContactNo->SafeText;$studentRecord->save();// $studentId = ???\[/code\]Thanks!
 
Back
Top