diff --git a/application/symfony/src/DBAL/Types/ActionType.php b/application/symfony/src/DBAL/Types/ActionType.php new file mode 100644 index 0000000..9598413 --- /dev/null +++ b/application/symfony/src/DBAL/Types/ActionType.php @@ -0,0 +1,23 @@ + 'create', + parent::READ => 'read', + parent::UPDATE => 'update', + parent::DELETE => 'delete', + self::LIST => 'list', + ]; +} diff --git a/application/symfony/src/DBAL/Types/Meta/Right/CRUDType.php b/application/symfony/src/DBAL/Types/Meta/Right/CRUDType.php index a76acd2..dfb4d3c 100644 --- a/application/symfony/src/DBAL/Types/Meta/Right/CRUDType.php +++ b/application/symfony/src/DBAL/Types/Meta/Right/CRUDType.php @@ -7,7 +7,7 @@ use Fresh\DoctrineEnumBundle\DBAL\Types\AbstractEnumType; /** * @author kevinfrantz */ -final class CRUDType extends AbstractEnumType +class CRUDType extends AbstractEnumType { public const CREATE = 'create'; diff --git a/application/symfony/tests/Unit/DBAL/Types/ActionTypeTest.php b/application/symfony/tests/Unit/DBAL/Types/ActionTypeTest.php new file mode 100644 index 0000000..51c7faf --- /dev/null +++ b/application/symfony/tests/Unit/DBAL/Types/ActionTypeTest.php @@ -0,0 +1,17 @@ +assertEquals(5, count(ActionType::getChoices())); + } +}