- Fixed ActionLogContext object_id, now allowing compound keys

This commit is contained in:
Dave Mc Nicoll committed 2026-11-02 18:47:55 +00:00
1 parent a54930b6c6
commit d71fac0f88
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ class ApiActionLog implements EntityInterface, \JsonSerializable
public int $id; public int $id;
#[Field\ForeignKey(name: "object_id"), EntityField(field: "object_id")] #[Field\ForeignKey(name: "object_id"), EntityField(field: "object_id")]
public int|array $objectId; public array|int|string $objectId;
#[Field(name: "object_type"), EntityField(field: "object_type")] #[Field(name: "object_type"), EntityField(field: "object_type")]
public string $objectType; public string $objectType;
+1 -1
View File
@@ -22,7 +22,7 @@ class ActionLogContext extends FormContext
public string $method; public string $method;
#[ContextField(mandatory: true)] #[ContextField(mandatory: true)]
public int|array $object_id; public mixed $object_id;
#[ContextField(mandatory: true)] #[ContextField(mandatory: true)]
public string $object_type; public string $object_type;