An activity may have multiple reasons

The relationship between Activity and Reasons is now many-to-many.

Some improvement in show activity layout.

refs #4 #7
This commit is contained in:
2016-02-22 14:48:35 +01:00
parent 65e7a130c5
commit c60d6acf97
11 changed files with 197 additions and 39 deletions

View File

@@ -85,7 +85,10 @@ class ActivityType extends AbstractType
))
->add('user')
->add('scope')
->add('reason', 'translatable_activity_reason')
->add('reasons', 'translatable_activity_reason', array(
'multiple' => true,
'required' => false
))
->add('type', 'translatable_activity_type')
//->add('person')
;