DX: rename UserScopeFilter to CreatorScopeFilter

This commit is contained in:
2023-10-24 14:17:08 +02:00
parent 5f805626f7
commit 7bff5ce39e
3 changed files with 10 additions and 8 deletions

View File

@@ -21,9 +21,9 @@ use Doctrine\ORM\QueryBuilder;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\FormBuilderInterface;
class UserScopeFilter implements FilterInterface
class CreatorScopeFilter implements FilterInterface
{
private const PREFIX = 'acp_act_filter_user_scope'; // creator ? cfr translation
private const PREFIX = 'acp_act_filter_creator_scope';
public function __construct(
private readonly TranslatableStringHelper $translatableStringHelper
@@ -39,7 +39,7 @@ class UserScopeFilter implements FilterInterface
$p = self::PREFIX;
$qb
->leftJoin('activity.user', "{$p}_user") // createdBy ? cfr translation
->leftJoin('activity.createdBy', "{$p}_user")
->leftJoin(
UserScopeHistory::class,
"{$p}_history",