From 1fac12c92832835927aad3e75fc9ad6a2aa704b8 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Mon, 2 Dec 2024 21:36:03 +0000 Subject: [PATCH] - Added relation's shortcut attributes --- .../Property/Relation/ManyToMany.php | 42 +++++++++++++++++++ src/Attribute/Property/Relation/OneToMany.php | 42 +++++++++++++++++++ src/Attribute/Property/Relation/OneToOne.php | 42 +++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 src/Attribute/Property/Relation/ManyToMany.php create mode 100644 src/Attribute/Property/Relation/OneToMany.php create mode 100644 src/Attribute/Property/Relation/OneToOne.php diff --git a/src/Attribute/Property/Relation/ManyToMany.php b/src/Attribute/Property/Relation/ManyToMany.php new file mode 100644 index 0000000..0d3ea2e --- /dev/null +++ b/src/Attribute/Property/Relation/ManyToMany.php @@ -0,0 +1,42 @@ +key, + $this->generateKey, + $this->foreignKey, + $this->foreignField, + $this->foreignKeys, + $this->bridge, + $this->bridgeKey, + $this->bridgeField, + $this->bridgeForeignKey, + $this->field, + $this->entity, + $this->join, + $this->function, + ); + } +} \ No newline at end of file diff --git a/src/Attribute/Property/Relation/OneToMany.php b/src/Attribute/Property/Relation/OneToMany.php new file mode 100644 index 0000000..f78b273 --- /dev/null +++ b/src/Attribute/Property/Relation/OneToMany.php @@ -0,0 +1,42 @@ +key, + $this->generateKey, + $this->foreignKey, + $this->foreignField, + $this->foreignKeys, + $this->bridge, + $this->bridgeKey, + $this->bridgeField, + $this->bridgeForeignKey, + $this->field, + $this->entity, + $this->join, + $this->function, + ); + } +} \ No newline at end of file diff --git a/src/Attribute/Property/Relation/OneToOne.php b/src/Attribute/Property/Relation/OneToOne.php new file mode 100644 index 0000000..3d221df --- /dev/null +++ b/src/Attribute/Property/Relation/OneToOne.php @@ -0,0 +1,42 @@ +key, + $this->generateKey, + $this->foreignKey, + $this->foreignField, + $this->foreignKeys, + $this->bridge, + $this->bridgeKey, + $this->bridgeField, + $this->bridgeForeignKey, + $this->field, + $this->entity, + $this->join, + $this->function, + ); + } +} \ No newline at end of file