File tree 2 files changed +27
-1
lines changed
src/Synolia/Bundle/FavoriteBundle
2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 21
21
'ownership ' => [
22
22
'organization_field_name ' => 'organization ' ,
23
23
'organization_column_name ' => 'organization_id ' ,
24
- 'frontend_owner_type ' => 'FRONTEND_CUSTOMER ' ,
24
+ 'frontend_owner_type ' => 'FRONTEND_USER ' ,
25
25
'frontend_owner_field_name ' => 'customerUser ' ,
26
26
'frontend_owner_column_name ' => 'customer_user_id ' , ],
27
27
'security ' => [
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Synolia \Bundle \FavoriteBundle \Migrations \Schema \v1_3 ;
4
+
5
+ use Doctrine \DBAL \Schema \Schema ;
6
+ use Oro \Bundle \ContactUsBundle \Entity \ContactRequest ;
7
+ use Oro \Bundle \EntityConfigBundle \Migration \UpdateEntityConfigEntityValueQuery ;
8
+ use Oro \Bundle \MigrationBundle \Migration \Extension \RenameExtension ;
9
+ use Oro \Bundle \MigrationBundle \Migration \Extension \RenameExtensionAwareInterface ;
10
+ use Oro \Bundle \MigrationBundle \Migration \Migration ;
11
+ use Oro \Bundle \MigrationBundle \Migration \OrderedMigrationInterface ;
12
+ use Oro \Bundle \MigrationBundle \Migration \QueryBag ;
13
+ use Synolia \Bundle \FavoriteBundle \Entity \Favorite ;
14
+
15
+ class UpdateOwnerField implements Migration
16
+ {
17
+ public function up (Schema $ schema , QueryBag $ queries ): void
18
+ {
19
+ $ queries ->addPostQuery (new UpdateEntityConfigEntityValueQuery (
20
+ Favorite::class,
21
+ 'ownership ' ,
22
+ 'frontend_owner_type ' ,
23
+ 'FRONTEND_USER '
24
+ ));
25
+ }
26
+ }
You can’t perform that action at this time.
0 commit comments