2
0
mirror of https://github.com/opencultureconsulting/oai-pmh2.git synced 2025-03-30 00:00:30 +01:00

Don't make entities final

This commit is contained in:
Sebastian Meyer 2025-03-21 13:23:58 +01:00
parent cd6d2e038f
commit e3f6991fc8
5 changed files with 15 additions and 4 deletions

View File

@ -12,6 +12,17 @@
reportMixedIssues="false"
>
<issueHandlers>
<!--
Entity classes must not be final in order for Doctrine DBAL to work.
-->
<ClassMustBeFinal>
<errorLevel type="suppress">
<file name="src/Entity/Format.php"/>
<file name="src/Entity/Record.php"/>
<file name="src/Entity/Set.php"/>
<file name="src/Entity/Token.php"/>
</errorLevel>
</ClassMustBeFinal>
<!--
This is a false-positive caused by Doctrine's EntityManagerDecorator.
-->

View File

@ -37,7 +37,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException;
*/
#[ORM\Entity(repositoryClass: FormatRepository::class)]
#[ORM\Table(name: 'formats')]
final class Format extends Entity
class Format extends Entity
{
/**
* The unique metadata prefix.

View File

@ -42,7 +42,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException;
#[ORM\Index(name: 'format_idx', columns: ['format'])]
#[ORM\Index(name: 'last_changed_idx', columns: ['last_changed'])]
#[ORM\Index(name: 'format_last_changed_idx', columns: ['format', 'last_changed'])]
final class Record extends Entity
class Record extends Entity
{
/**
* The record identifier.

View File

@ -37,7 +37,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException;
*/
#[ORM\Entity(repositoryClass: SetRepository::class)]
#[ORM\Table(name: 'sets')]
final class Set extends Entity
class Set extends Entity
{
/**
* The unique set spec.

View File

@ -40,7 +40,7 @@ use OCC\OaiPmh2\Repository\TokenRepository;
#[ORM\Entity(repositoryClass: TokenRepository::class)]
#[ORM\Table(name: 'tokens')]
#[ORM\Index(name: 'valid_until_idx', columns: ['valid_until'])]
final class Token extends Entity
class Token extends Entity
{
/**
* The resumption token.