Category unactive implies all the reasons with this category as unactive - refs #622

This commit is contained in:
Marc Ducobu
2015-10-01 16:35:10 +02:00
parent 0ecfcae98b
commit 744a68f195
2 changed files with 24 additions and 5 deletions

View File

@@ -12,4 +12,8 @@ Chill\ActivityBundle\Entity\ActivityReasonCategory:
type: json_array
active:
type: boolean
oneToMany:
reasons:
targetEntity: Chill\ActivityBundle\Entity\ActivityReason
mappedBy: category
lifecycleCallbacks: { }