Skip to content
Snippets Groups Projects
Commit b2ef3ba6 authored by Владислав Яковлев's avatar Владислав Яковлев
Browse files

Fix student model

parent e21b6b01
Branches
Tags
No related merge requests found
......@@ -28,7 +28,7 @@
class Model_Student extends Model_Container
{
protected function getRawData($id) {
$this->ID = $id;
$this->data[self::$ID_FIELD] = $id;
$sql = 'CALL `Student_GetInfo`(:id)';
$info = DB::query(Database::SELECT, $sql)
->param(':id', $this->ID)->execute();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment