Skip to content

Commit

Permalink
deprecated old code
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Mar 13, 2020
1 parent 4397711 commit 7036a8c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/FAST-Core-Model-Extension/FASTEntity.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ Extension { #name : #FASTEntity }

{ #category : #'*FAST-Core-Model-Extension' }
FASTEntity >> childrenNode [
"^ (((self class allDeclaredPropertiesIn: self metamodel) select: #isChildrenProperty thenCollect: [:childrenProperty | self perform: (childrenProperty implementingSelector)]) reject: #isNil) flattened
"

^ (((self class allDeclaredPropertiesIn: self metamodel) select: #isChildrenProperty thenCollect: [:childrenProperty | self perform: (childrenProperty implementingSelector)]) reject: #isNil) flattened

self deprecated: 'The method #childrenNode was not good. Use children instead.' transformWith: '`@receiver childrenNode' -> '`@receiver children'.
^ self children
]

{ #category : #'*FAST-Core-Model-Extension' }
Expand Down

0 comments on commit 7036a8c

Please sign in to comment.