Skip to content

Commit

Permalink
update meta-storm syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Jan 2, 2025
1 parent 15fe413 commit 3c31bc0
Show file tree
Hide file tree
Showing 8 changed files with 172 additions and 471 deletions.
32 changes: 8 additions & 24 deletions resources/annotated.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<collection
className="\Cycle\Annotated\Annotation\Embeddable"
methodName="__construct"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\Annotated\Annotation\Embeddable"
methodName="__construct"
argumentIndex="0"
collectionName="entity-role"
/>
<classConstructor class="\Cycle\Annotated\Annotation\Embeddable" argument="0">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classConstructor>

<collection
className="\Cycle\Annotated\Annotation\ForeignKey"
methodName="__construct"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\Annotated\Annotation\ForeignKey"
methodName="__construct"
argumentIndex="0"
collectionName="entity-role"
/>
<classConstructor class="\Cycle\Annotated\Annotation\ForeignKey" argument="0">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classConstructor>
</definitions>
</meta-storm>
10 changes: 5 additions & 5 deletions resources/collections.meta-storm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
<collections>
<attributeArgument
name="entity-role"
className="\Cycle\Annotated\Annotation\Entity"
argumentIndex="0"
class="\Cycle\Annotated\Annotation\Entity"
argument="0"
/>
<attributeClass
name="entity-class"
className="\Cycle\Annotated\Annotation\Entity"
class="\Cycle\Annotated\Annotation\Entity"
/>
<attributeClass
name="entity-embeddable-class"
className="\Cycle\Annotated\Annotation\Embeddable"
class="\Cycle\Annotated\Annotation\Embeddable"
/>
<attributeClass
name="cycle-mapper"
className="\Cycle\Annotated\Annotation\Embeddable"
class="\Cycle\Annotated\Annotation\Embeddable"
/>
</collections>
</meta-storm>
96 changes: 24 additions & 72 deletions resources/orm-factory.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -1,82 +1,34 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="mapper"
argumentIndex="1"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="mapper"
argumentIndex="1"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\FactoryInterface" method="mapper" argument="1">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>

<collection
className="\Cycle\ORM\FactoryInterface"
methodName="loader"
argumentIndex="2"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="loader"
argumentIndex="2"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\FactoryInterface" method="loader" argument="2">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>

<collection
className="\Cycle\ORM\FactoryInterface"
methodName="repository"
argumentIndex="2"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="repository"
argumentIndex="2"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\FactoryInterface" method="repository" argument="2">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>

<collection
className="\Cycle\ORM\FactoryInterface"
methodName="typecast"
argumentIndex="2"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="typecast"
argumentIndex="2"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\FactoryInterface" method="typecast" argument="2">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>

<collection
className="\Cycle\ORM\FactoryInterface"
methodName="source"
argumentIndex="1"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="source"
argumentIndex="1"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\FactoryInterface" method="source" argument="1">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>

<collection
className="\Cycle\ORM\FactoryInterface"
methodName="relation"
argumentIndex="2"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\FactoryInterface"
methodName="relation"
argumentIndex="2"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\FactoryInterface" method="relation" argument="2">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>
</definitions>
</meta-storm>
32 changes: 8 additions & 24 deletions resources/orm-iterator.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<collection
className="\Cycle\ORM\Iterator"
methodName="createWithOrm"
argumentIndex="1"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\Iterator"
methodName="createWithOrm"
argumentIndex="1"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\Iterator" method="createWithOrm" argument="1">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>

<collection
className="\Cycle\ORM\Iterator"
methodName="createWithServices"
argumentIndex="3"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\Iterator"
methodName="createWithServices"
argumentIndex="3"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\Iterator" method="createWithServices" argument="3">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>
</definitions>
</meta-storm>
96 changes: 24 additions & 72 deletions resources/orm-schema.meta-storm.xml
Original file line number Diff line number Diff line change
@@ -1,82 +1,34 @@
<?xml version="1.0" encoding="UTF-8" ?>
<meta-storm xmlns="meta-storm">
<definitions>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="getRelations"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="getRelations"
argumentIndex="0"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\SchemaInterface" method="getRelations" argument="0">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>

<collection
className="\Cycle\ORM\SchemaInterface"
methodName="defines"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="defines"
argumentIndex="0"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\SchemaInterface" method="defines" argument="0">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>

<collection
className="\Cycle\ORM\SchemaInterface"
methodName="define"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="define"
argumentIndex="0"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\SchemaInterface" method="define" argument="0">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>

<collection
className="\Cycle\ORM\SchemaInterface"
methodName="defineRelation"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="defineRelation"
argumentIndex="0"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\SchemaInterface" method="defineRelation" argument="0">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>

<collection
className="\Cycle\ORM\SchemaInterface"
methodName="resolveAlias"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="resolveAlias"
argumentIndex="0"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\SchemaInterface" method="resolveAlias" argument="0">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>

<collection
className="\Cycle\ORM\SchemaInterface"
methodName="getInheritedRoles"
argumentIndex="0"
collectionName="entity-class"
/>
<collection
className="\Cycle\ORM\SchemaInterface"
methodName="getInheritedRoles"
argumentIndex="0"
collectionName="entity-role"
/>
<classMethod class="\Cycle\ORM\SchemaInterface" method="getInheritedRoles" argument="0">
<collection name="entity-class" argument="0" />
<collection name="entity-role" argument="0" />
</classMethod>
</definitions>
</meta-storm>
Loading

0 comments on commit 3c31bc0

Please sign in to comment.