From: Vincent Vanwaelscappel Date: Fri, 31 May 2019 14:53:45 +0000 (+0200) Subject: #2783 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a4ad69d658e823d355606800a93284ef5a76dabc;p=cubist_cms-back.git #2783 --- 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') { + + } + } }