From e2f61b05d8e80e51bdfb179f27c82b7dd54cfee1 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Tue, 20 Jul 2021 14:04:05 +0000 Subject: [PATCH] [ENTITY] Fix foreign key type in Cover entity, as found by tests --- src/Entity/Cover.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/Cover.php b/src/Entity/Cover.php index 29f4b28912..9460575654 100644 --- a/src/Entity/Cover.php +++ b/src/Entity/Cover.php @@ -146,7 +146,7 @@ class Cover extends Entity return [ 'name' => 'cover', 'fields' => [ - 'gsactor_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'GSActor.id', 'multiplicity' => 'onne to one', 'not null' => true, 'description' => 'foreign key to gsactor table'], + 'gsactor_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'GSActor.id', 'multiplicity' => 'one to one', 'not null' => true, 'description' => 'foreign key to gsactor table'], 'attachment_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'Attachment.id', 'multiplicity' => 'one to one', 'not null' => true, 'description' => 'foreign key to attachment table'], 'created' => ['type' => 'datetime', 'not null' => true, 'description' => 'date this record was created', 'default' => 'CURRENT_TIMESTAMP'], 'modified' => ['type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified', 'default' => 'CURRENT_TIMESTAMP'],