mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-06 12:44:20 +01:00
Refactor entities and codebase for native property usage
- Replaced getters/setters with direct property access across entities and repositories. - Added and configured `martin-georgiev/postgresql-for-doctrine` for PostgreSQL enhancements. - Updated Doctrine configuration with types, mappings, and JSONB query functions. - Removed unused `EliminationService` and related YAML configurations.
This commit is contained in:
@@ -84,8 +84,8 @@ class QuizSpreadsheetService
|
||||
}
|
||||
|
||||
$question = new Question();
|
||||
$question->setQuestion((string) $questionArr[0]);
|
||||
$question->setOrdering($questionCounter++);
|
||||
$question->question = (string) $questionArr[0];
|
||||
$question->ordering = $questionCounter++;
|
||||
|
||||
$answerCounter = 1;
|
||||
$arrCounter = 1;
|
||||
@@ -100,7 +100,7 @@ class QuizSpreadsheetService
|
||||
}
|
||||
|
||||
$answer = new Answer((string) $questionArr[$arrCounter++], (bool) $questionArr[$arrCounter++]);
|
||||
$answer->setOrdering($answerCounter++);
|
||||
$answer->ordering = $answerCounter++;
|
||||
$question->addAnswer($answer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user