<?php declare(strict_types=1);
namespace Shopware\Core\Framework\DataAbstractionLayer;
use Shopware\Core\Framework\Context;
use Shopware\Core\Framework\DataAbstractionLayer\Event\EntityWrittenContainerEvent;
use Shopware\Core\Framework\DataAbstractionLayer\Search\AggregationResult\AggregationResultCollection;
use Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria;
use Shopware\Core\Framework\DataAbstractionLayer\Search\EntitySearchResult;
use Shopware\Core\Framework\DataAbstractionLayer\Search\IdSearchResult;
use Shopware\Core\Framework\DataAbstractionLayer\Write\CloneBehavior;
use Shopware\Core\Framework\Log\Package;
/**
* @deprecated tag:v6.5.0 - reason:remove-decorator - will be removed, as it is not needed anymore after EntityRepositoryInterface removal
*
* @internal
*/
#[Package('core')] // @phpstan-ignore-line the decorator extends @final class
class EntityRepositoryForwardCompatibilityDecorator extends EntityRepository implements EntityRepositoryInterface
{
private EntityRepositoryInterface $inner;
public function __construct(EntityRepositoryInterface $inner)
{
$this->inner = $inner;
}
public function getDefinition(): EntityDefinition
{
return $this->inner->getDefinition();
}
public function aggregate(Criteria $criteria, Context $context): AggregationResultCollection
{
return $this->inner->aggregate($criteria, $context);
}
public function searchIds(Criteria $criteria, Context $context): IdSearchResult
{
return $this->inner->searchIds($criteria, $context);
}
public function clone(string $id, Context $context, ?string $newId = null, ?CloneBehavior $behavior = null): EntityWrittenContainerEvent
{
return $this->inner->clone($id, $context, $newId, $behavior);
}
public function search(Criteria $criteria, Context $context): EntitySearchResult
{
return $this->inner->search($criteria, $context);
}
public function update(array $data, Context $context): EntityWrittenContainerEvent
{
return $this->inner->update($data, $context);
}
public function upsert(array $data, Context $context): EntityWrittenContainerEvent
{
return $this->inner->upsert($data, $context);
}
public function create(array $data, Context $context): EntityWrittenContainerEvent
{
return $this->inner->create($data, $context);
}
public function delete(array $ids, Context $context): EntityWrittenContainerEvent
{
return $this->inner->delete($ids, $context);
}
public function createVersion(string $id, Context $context, ?string $name = null, ?string $versionId = null): string
{
return $this->inner->createVersion($id, $context, $name, $versionId);
}
public function merge(string $versionId, Context $context): void
{
$this->inner->merge($versionId, $context);
}
}