diff --git a/src/Synolia/Bundle/FavoriteBundle/Entity/Favorite.php b/src/Synolia/Bundle/FavoriteBundle/Entity/Favorite.php index c26c7df..81f2718 100644 --- a/src/Synolia/Bundle/FavoriteBundle/Entity/Favorite.php +++ b/src/Synolia/Bundle/FavoriteBundle/Entity/Favorite.php @@ -21,7 +21,7 @@ 'ownership' => [ 'organization_field_name' => 'organization', 'organization_column_name' => 'organization_id', - 'frontend_owner_type' => 'FRONTEND_CUSTOMER', + 'frontend_owner_type' => 'FRONTEND_USER', 'frontend_owner_field_name' => 'customerUser', 'frontend_owner_column_name' => 'customer_user_id', ], 'security' => [ diff --git a/src/Synolia/Bundle/FavoriteBundle/Migrations/Schema/v1_3/UpdateOwnerField.php b/src/Synolia/Bundle/FavoriteBundle/Migrations/Schema/v1_3/UpdateOwnerField.php new file mode 100644 index 0000000..1495b05 --- /dev/null +++ b/src/Synolia/Bundle/FavoriteBundle/Migrations/Schema/v1_3/UpdateOwnerField.php @@ -0,0 +1,26 @@ +addPostQuery(new UpdateEntityConfigEntityValueQuery( + Favorite::class, + 'ownership', + 'frontend_owner_type', + 'FRONTEND_USER' + )); + } +}