]> _ Git - cubist_cms-back.git/commitdiff
#2783
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 31 May 2019 14:53:45 +0000 (16:53 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 31 May 2019 14:53:45 +0000 (16:53 +0200)
src/app/Magic/Fields/Field.php

index afae70c74729a7f8e33493295888993c895f434f..1057560c28cca1ac65ab6df6cf7a8f98fc42b81a 100644 (file)
@@ -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') {
+
+        }
+    }
 }