File tree Expand file tree Collapse file tree
Famix-MetamodelBuilder-Core
Famix-MetamodelBuilder-Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ FmxMBRelationSide >> cardinality: anObject [
6161FmxMBRelationSide >> container [
6262 " This method should not be called directly by the user. This is reserved to be used internaly in the builder."
6363
64- self withNavigationOf: self relation.
64+ self relation withNavigation .
6565 container := true
6666]
6767
Original file line number Diff line number Diff line change @@ -72,39 +72,27 @@ FmxMBRelationSideTrait >> asRelationSideNamed: aPropertyName [
7272FmxMBRelationSideTrait >> containsMany: aRelationSide [
7373
7474 | aRelation |
75-
7675 aRelation := self oneToMany: aRelationSide.
7776 aRelation right container.
78- aRelation withNavigation.
79-
8077 ^ aRelation
81-
8278]
8379
8480{ #category : ' relations - named containers' }
8581FmxMBRelationSideTrait >> containsOne: aRelationSide [
8682
8783 | aRelation |
88-
8984 aRelation := self oneToOne: aRelationSide.
9085 aRelation right container.
91- aRelation withNavigation.
92-
9386 ^ aRelation
94-
9587]
9688
9789{ #category : ' relations - named containers' }
9890FmxMBRelationSideTrait >> manyBelongTo: aRelationSide [
9991
10092 | aRelation |
101-
10293 aRelation := self manyToOne: aRelationSide.
10394 aRelation left container.
104- aRelation withNavigation.
105-
10695 ^ aRelation
107-
10896]
10997
11098{ #category : ' relations - named' }
@@ -154,13 +142,9 @@ FmxMBRelationSideTrait >> manyToOne: aRelationSide [
154142FmxMBRelationSideTrait >> oneBelongsTo: aRelationSide [
155143
156144 | aRelation |
157-
158145 aRelation := self oneToOne: aRelationSide.
159146 aRelation left container.
160- aRelation withNavigation.
161-
162147 ^ aRelation
163-
164148]
165149
166150{ #category : ' relations - named' }
Original file line number Diff line number Diff line change @@ -125,12 +125,11 @@ FmxMBRelationSideTest >> testProperties [
125125 side := FmxMBRelationSide new .
126126
127127 self deny: side isContainer.
128- side container.
128+ side container: true .
129129 self assert: side isContainer.
130130 side container: false .
131131 self deny: side isContainer.
132- side container.
133- self assert: side isContainer.
132+ side container: true .
134133 side noContainer.
135134 self deny: side isContainer.
136135
You can’t perform that action at this time.
0 commit comments