Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions resources/annotated.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<!-- Embeddable Entity -->
<classConstructor class="\Cycle\Annotated\Annotation\Embeddable" argument="0">
<collection name="cycle/orm:entity-class" argument="0" />
<collection name="cycle/orm:entity-role" argument="0" />
</classConstructor>

<!-- Foreign Key -->
<!-- target: -->
<classConstructor class="\Cycle\Annotated\Annotation\ForeignKey" argument="0">
<collection name="cycle/orm:entity-class" argument="0" />
<collection name="cycle/orm:entity-role" argument="0" />
</classConstructor>
<!-- innerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\ForeignKey" argument="1" targetInArray="value">
<properties xpath="$containingClass">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>
<!-- outerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\ForeignKey" argument="2" targetInArray="value">
<properties xpath="$argument[0]">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>
</definitions>
</meta-storm>
168 changes: 165 additions & 3 deletions resources/relations.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,100 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<!-- Belongs To -->
<!-- target: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\BelongsTo" argument="0">
<collection name="cycle/orm:entity-class" argument="0" />
<collection name="cycle/orm:entity-role" argument="0" />
</classConstructor>
<!-- innerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\BelongsTo" argument="1" targetInArray="value">
<properties xpath="$containingClass">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>
<!-- outerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\BelongsTo" argument="2" targetInArray="value">
<properties xpath="$argument[0]">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>

<!-- Has Many -->
<!-- target: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\HasMany" argument="0">
<collection name="cycle/orm:entity-class" argument="0" />
<collection name="cycle/orm:entity-role" argument="0" />
</classConstructor>
<!-- innerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\HasMany" argument="1" targetInArray="value">
<properties xpath="$containingClass">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>
<!-- outerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\HasMany" argument="2" targetInArray="value">
<properties xpath="$argument[0]">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>

<!-- Has One -->
<!-- target: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\HasOne" argument="0">
<collection name="cycle/orm:entity-class" argument="0" />
<collection name="cycle/orm:entity-role" argument="0" />
</classConstructor>
<!-- innerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\HasOne" argument="1" targetInArray="value">
<properties xpath="$containingClass">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>
<!-- outerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\HasOne" argument="2" targetInArray="value">
<properties xpath="$argument[0]">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>

<!-- Refers To -->
<!-- target: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\RefersTo" argument="0">
<collection name="cycle/orm:entity-class" argument="0" />
<collection name="cycle/orm:entity-role" argument="0" />
</classConstructor>
<!-- innerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\RefersTo" argument="1" targetInArray="value">
<properties xpath="$containingClass">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>
<!-- outerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\RefersTo" argument="2" targetInArray="value">
<properties xpath="$argument[0]">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>

<!-- Many To Many -->
<!-- target: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\ManyToMany" argument="0">
<collection name="cycle/orm:entity-class" argument="0" />
<collection name="cycle/orm:entity-role" argument="0" />
Expand All @@ -29,22 +103,110 @@
<collection name="cycle/orm:entity-class" argument="0" />
<collection name="cycle/orm:entity-role" argument="0" />
</classConstructor>
<!-- target innerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\ManyToMany" argument="2" targetInArray="value">
<properties xpath="$containingClass">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>
<!-- target outerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\ManyToMany" argument="3" targetInArray="value">
<properties xpath="$argument[0]">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>
<!-- through innerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\ManyToMany" argument="4" targetInArray="value">
<properties xpath="$argument[1]">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>
<!-- through outerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\ManyToMany" argument="5" targetInArray="value">
<properties xpath="$argument[1]">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>

<classConstructor class="\Cycle\Annotated\Annotation\Relation\BelongsToMorphed" argument="1">
<!-- Belongs To Morphed -->
<!-- target: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\Morphed\BelongsToMorphed" argument="1">
<collection name="cycle/orm:entity-class" argument="0" />
<collection name="cycle/orm:entity-role" argument="0" />
</classConstructor>
<!-- innerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\Morphed\BelongsToMorphed" argument="1" targetInArray="value">
<properties xpath="$containingClass">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>
<!-- outerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\Morphed\BelongsToMorphed" argument="2" targetInArray="value">
<properties xpath="$argument[0]">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>

<classConstructor class="\Cycle\Annotated\Annotation\Relation\MorphedHasMany" argument="1">
<!-- Morphed Has Many -->
<!-- target: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\Morphed\MorphedHasMany" argument="1">
<collection name="cycle/orm:entity-class" argument="0" />
<collection name="cycle/orm:entity-role" argument="0" />
</classConstructor>
<!-- innerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\Morphed\MorphedHasMany" argument="1" targetInArray="value">
<properties xpath="$containingClass">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>
<!-- outerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\Morphed\MorphedHasMany" argument="2" targetInArray="value">
<properties xpath="$argument[0]">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>

<classConstructor class="\Cycle\Annotated\Annotation\Relation\MorphedHasOne" argument="1">
<!-- Morphed Has One -->
<!-- target: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\Morphed\MorphedHasOne" argument="1">
<collection name="cycle/orm:entity-class" argument="0" />
<collection name="cycle/orm:entity-role" argument="0" />
</classConstructor>
<!-- innerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\Morphed\MorphedHasOne" argument="1" targetInArray="value">
<properties xpath="$containingClass">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>
<!-- outerKey: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\Morphed\MorphedHasOne" argument="2" targetInArray="value">
<properties xpath="$argument[0]">
<filters>
<hasAttribute class="\Cycle\Annotated\Annotation\Column"/>
</filters>
</properties>
</classConstructor>

<!-- Embedded -->
<!-- target: -->
<classConstructor class="\Cycle\Annotated\Annotation\Relation\Embedded" argument="0">
<collection name="cycle/orm:entity-embeddable-class" argument="0" />
</classConstructor>
Expand Down
3 changes: 0 additions & 3 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ version: "3"
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2019-latest
restart: always
ports:
- "11433:1433"
environment:
Expand All @@ -12,7 +11,6 @@ services:

mysql_latest:
image: mysql:8.0
restart: always
command: --default-authentication-plugin=mysql_native_password
ports:
- "13306:3306"
Expand All @@ -23,7 +21,6 @@ services:

postgres:
image: postgres:12
restart: always
ports:
- "15432:5432"
environment:
Expand Down
Loading