| @@ 54-71 (lines=18) @@ | ||
| 51 | * |
|
| 52 | * @return void |
|
| 53 | */ |
|
| 54 | protected function configureListFields(ListMapper $listMapper) |
|
| 55 | { |
|
| 56 | $listMapper |
|
| 57 | ->addIdentifier('title') |
|
| 58 | ->add('description') |
|
| 59 | ->add('performance') |
|
| 60 | ->add('employee') |
|
| 61 | ->add( |
|
| 62 | '_action', |
|
| 63 | 'actions', |
|
| 64 | [ |
|
| 65 | 'actions' => [ |
|
| 66 | 'show' => [], |
|
| 67 | 'edit' => [], |
|
| 68 | 'delete' => [], |
|
| 69 | ], |
|
| 70 | ] |
|
| 71 | ) |
|
| 72 | ; |
|
| 73 | } |
|
| 74 | ||
| @@ 113-129 (lines=17) @@ | ||
| 110 | * |
|
| 111 | * @return void |
|
| 112 | */ |
|
| 113 | protected function configureListFields(ListMapper $listMapper) |
|
| 114 | { |
|
| 115 | $listMapper |
|
| 116 | ->add('mainPicture', 'string', ['template' => '::SonataAdmin/thumbnail.html.twig']) |
|
| 117 | ->addIdentifier('title') |
|
| 118 | ->add('createdAt') |
|
| 119 | ->add( |
|
| 120 | '_action', |
|
| 121 | 'actions', |
|
| 122 | [ |
|
| 123 | 'actions' => [ |
|
| 124 | 'edit' => [], |
|
| 125 | 'delete' => [], |
|
| 126 | ], |
|
| 127 | ] |
|
| 128 | ) |
|
| 129 | ||
| 130 | ; |
|
| 131 | } |
|
| 132 | ||
| @@ 131-144 (lines=14) @@ | ||
| 128 | * |
|
| 129 | * @return void |
|
| 130 | */ |
|
| 131 | protected function configureListFields(ListMapper $listMapper) |
|
| 132 | { |
|
| 133 | $listMapper |
|
| 134 | ->add('performance') |
|
| 135 | ->add('dateTime') |
|
| 136 | ->add('venue') |
|
| 137 | ->add('_action', 'actions', [ |
|
| 138 | 'actions' => [ |
|
| 139 | 'edit' => [], |
|
| 140 | 'delete' => [], |
|
| 141 | ], |
|
| 142 | ]); |
|
| 143 | } |
|
| 144 | ||
| 145 | public function postUpdate($object) |
|
| 146 | { |
|
| 147 | self::inspectPriceCategories($object); |
|