diff --git a/~dev_rating/application/classes/Controller/Api/V0/Student.php b/~dev_rating/application/classes/Controller/Api/V0/Student.php index b60f2c3f5d2ef73e60fd4f2bc4f3ebc2a5152865..7039b310ca8243023b2b1a991c1d124b0bb12a72 100644 --- a/~dev_rating/application/classes/Controller/Api/V0/Student.php +++ b/~dev_rating/application/classes/Controller/Api/V0/Student.php @@ -215,6 +215,7 @@ class Controller_Api_V0_Student extends Controller_Handler_Api // todo проверка отличается от остальных if (empty($student->ExternalID)) { $student->ExternalID = $studentData->externalID; + $student->LastName = $studentData->lastName; $student->update(); } } else { diff --git a/~dev_rating/application/classes/Model/Student.php b/~dev_rating/application/classes/Model/Student.php index 24177084db80dccd63c017a5fdb57363af22ab6c..de5a36f859db506a1d0510f8b4c85e221294cc5f 100644 --- a/~dev_rating/application/classes/Model/Student.php +++ b/~dev_rating/application/classes/Model/Student.php @@ -5,7 +5,7 @@ * * @property-read $ID int * @property $ExternalID string - * @property-read $LastName string + * @property $LastName string * @property-read $FirstName string * @property $SecondName string * @property-read $AccountID int