From 98c6ba58f315005f64aea6ac35d9f8aee393db3e Mon Sep 17 00:00:00 2001 From: Janice GALLARDO Date: Thu, 20 Mar 2025 13:50:27 +0000 Subject: [PATCH] bugfix - entity-oro-6.0 : fix entity frontend owner type --- .../Bundle/FavoriteBundle/Entity/Favorite.php | 2 +- .../Schema/v1_3/UpdateOwnerField.php | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 src/Synolia/Bundle/FavoriteBundle/Migrations/Schema/v1_3/UpdateOwnerField.php 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' + )); + } +}