Skip to content

Commit

Permalink
fix compute derived in case of multivalue relation... (better fixed i…
Browse files Browse the repository at this point in the history
…n Moose8, please consider switching to moose8)
  • Loading branch information
badetitou committed Jan 22, 2021
1 parent 0429bd7 commit 12bf7e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Fame-Core/FMRelationSlot.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,11 @@ FMRelationSlot >> moosePropertyFor: anOwningClassName multivalued: aBoolean [
ifTrue: [ mooseProperty name: self name asString.
mooseProperty setImplementingSelector: self name. "should be a link to slot"
mooseProperty isMultivalued: aBoolean.
(Pragma
inMethod: (self class environment at: anOwningClassName) >> self name
named: #derived) ifNotNil: [ mooseProperty isDerived: true ].
(aBoolean
or: [ (Pragma
inMethod: (self class environment at: anOwningClassName) >> self name
named: #derived) isNotNil ])
ifTrue: [ mooseProperty isDerived: true ].
mooseProperty privOpposite: self inverseSlot mooseProperty ].
^ mooseProperty
]
Expand Down

0 comments on commit 12bf7e4

Please sign in to comment.