From a4ad69d658e823d355606800a93284ef5a76dabc Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 31 May 2019 16:53:45 +0200 Subject: [PATCH] #2783 --- src/app/Magic/Fields/Field.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/app/Magic/Fields/Field.php b/src/app/Magic/Fields/Field.php index afae70c..1057560 100644 --- a/src/app/Magic/Fields/Field.php +++ b/src/app/Magic/Fields/Field.php @@ -126,4 +126,17 @@ class Field $table->addIndex([$name]); } } + + public function relationship($type) + { + if ($type == 'hasOne') { + + } else if ($type == "hasMany") { + + } else if ($type == 'belongsTo') { + + } else if ($type == 'belongsToMany') { + + } + } } -- 2.39.5