From 1d42c7a83589fdef8eec869a6c0cae0defd456cb Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Thu, 11 Mar 2021 22:19:11 +0000 Subject: [PATCH] [DB][NoteLocation] Add missing `multiplicity` to column --- src/Entity/NoteLocation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/NoteLocation.php b/src/Entity/NoteLocation.php index 83f4b0d289..19bc1b47ad 100644 --- a/src/Entity/NoteLocation.php +++ b/src/Entity/NoteLocation.php @@ -119,7 +119,7 @@ class NoteLocation extends Entity return [ 'name' => 'activity_location', 'fields' => [ - 'note_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'Note.id', 'name' => 'note_location_note_id_fkey', 'not null' => true, 'description' => 'activity this refers to'], + 'note_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'Note.id', 'multiplicity' => 'one to one', 'name' => 'note_location_note_id_fkey', 'not null' => true, 'description' => 'activity this refers to'], 'lat' => ['type' => 'numeric', 'precision' => 10, 'scale' => 7, 'description' => 'latitude'], 'lon' => ['type' => 'numeric', 'precision' => 10, 'scale' => 7, 'description' => 'longitude'], 'location_id' => ['type' => 'int', 'description' => 'location id if possible'],