fix error "Unknown column 'api' in 'field list'" on mass relate (#3562)

This commit is contained in:
grray
2026-01-16 09:43:40 +02:00
committed by GitHub
parent 917dbdd3fe
commit ddb636239b

View File

@@ -1303,7 +1303,7 @@ class Service implements Crud,
$this->getRepository()
->getRelation($entity, $link)
->relate($foreignEntity, [SaveOption::API => true]);
->relate($foreignEntity, null, [SaveOption::API => true]);
$countRelated++;
}