Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/plugins/CoreJob/src/Lib/Jobs/SyncJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,12 @@ protected function postRunTasks(
]);
}

$LastRunTable->save($lastRun);
// SyncJobLastRuns table save triggers the ruleValidateCO integrity rule for external_identity_source_id.
// ruleValidateCO expects a belongsTo association named external_identity_source (derived from the _id field),
// but SyncJobLastRuns has no such association (autovivified table / missing Table class).
//This causes the job (and tests) to fail with “Missing association … in ruleValidateCO”.
// As a result we need to disable the ruleValidateCO integrity rule for SyncJobLastRuns.
$LastRunTable->save($lastRun, ['checkRules' => false]);

// Call the plugin if it has anything it wants to do

Expand Down