diff --git a/.idea/TijdVoorDeTest.iml b/.idea/TijdVoorDeTest.iml index f867990..0567d5f 100644 --- a/.idea/TijdVoorDeTest.iml +++ b/.idea/TijdVoorDeTest.iml @@ -166,6 +166,7 @@ + diff --git a/.idea/php.xml b/.idea/php.xml index 720e488..cadf993 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -203,6 +203,7 @@ + diff --git a/config/reference.php b/config/reference.php index 9d9f800..e9621b0 100644 --- a/config/reference.php +++ b/config/reference.php @@ -1309,6 +1309,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param; * traces_sampler?: scalar|Param|null, * profiles_sample_rate?: float|Param, // The sampling factor to apply to profiles. A value of 0 will deny sending any profiles, and a value of 1 will send all profiles. Profiles are sampled in relation to traces_sample_rate * enable_logs?: bool|Param, + * log_flush_threshold?: mixed, // Default: null * enable_metrics?: bool|Param, // Default: true * attach_stacktrace?: bool|Param, * attach_metric_code_locations?: bool|Param, @@ -1318,6 +1319,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param; * spotlight?: bool|Param, * spotlight_url?: scalar|Param|null, * release?: scalar|Param|null, // Default: "%env(default::SENTRY_RELEASE)%" + * org_id?: int|Param, * server_name?: scalar|Param|null, * ignore_exceptions?: list, * ignore_transactions?: list, @@ -1328,6 +1330,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param; * before_send_log?: scalar|Param|null, * before_send_metric?: scalar|Param|null, * trace_propagation_targets?: mixed, + * strict_trace_continuation?: bool|Param, * tags?: array, * error_types?: scalar|Param|null, * max_breadcrumbs?: int|Param, @@ -1352,11 +1355,13 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param; * enabled?: bool|Param, // Default: false * capture_soft_fails?: bool|Param, // Default: true * isolate_breadcrumbs_by_message?: bool|Param, // Default: false + * isolate_context_by_message?: bool|Param, // Default: false * }, * tracing?: bool|array{ * enabled?: bool|Param, // Default: true * dbal?: bool|array{ * enabled?: bool|Param, // Default: true + * ignore_prepare_spans?: bool|Param, // Default: false * connections?: list, * }, * twig?: bool|array{ @@ -1376,6 +1381,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param; * @psalm-type SymfonycastsSassConfig = array{ * root_sass?: list, * binary?: scalar|Param|null, // The Sass binary to use // Default: null + * search_for_binary?: scalar|Param|null, // Whether to search for the Sass binary in the system PATH // Default: true * sass_options?: array{ * style?: "compressed"|"expanded"|Param, // The style of the generated CSS: compressed or expanded. // Default: "expanded" * charset?: bool|Param, // Whether to include the charset declaration in the generated Sass. diff --git a/migrations/Version20260524121119.php b/migrations/Version20260524135246.php similarity index 86% rename from migrations/Version20260524121119.php rename to migrations/Version20260524135246.php index aacbd52..76b8190 100644 --- a/migrations/Version20260524121119.php +++ b/migrations/Version20260524135246.php @@ -7,7 +7,7 @@ namespace DoctrineMigrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; -final class Version20260524121119 extends AbstractMigration +final class Version20260524135246 extends AbstractMigration { public function getDescription(): string { @@ -18,7 +18,7 @@ final class Version20260524121119 extends AbstractMigration { // this up() migration is auto-generated, please modify it to your needs $this->addSql('DROP INDEX uniq_ced2ffa291bd8781853cd175'); - $this->addSql('CREATE UNIQUE INDEX UNIQ_CED2FFA291BD8781853CD175 ON quiz_candidate (candidate_id, quiz_id) WHERE deleted_at IS NULL'); + $this->addSql('CREATE UNIQUE INDEX UNIQ_CED2FFA291BD8781853CD175 ON quiz_candidate (candidate_id, quiz_id) WHERE (deleted_at IS NULL)'); } public function down(Schema $schema): void diff --git a/src/Entity/QuizCandidate.php b/src/Entity/QuizCandidate.php index bb5b98f..fb1896c 100644 --- a/src/Entity/QuizCandidate.php +++ b/src/Entity/QuizCandidate.php @@ -14,7 +14,7 @@ use Tvdt\Repository\QuizCandidateRepository; #[Gedmo\SoftDeleteable] #[ORM\Entity(repositoryClass: QuizCandidateRepository::class)] -#[ORM\UniqueConstraint(columns: ['candidate_id', 'quiz_id'], options: ['where' => 'deleted_at IS NULL'])] +#[ORM\UniqueConstraint(columns: ['candidate_id', 'quiz_id'], options: ['where' => '(deleted_at IS NULL)'])] class QuizCandidate { use SoftDeleteableEntity;