diff --git a/tests/App/Entity/Item.php b/tests/App/Entity/Item.php index c922b2b66..f27c5061b 100644 --- a/tests/App/Entity/Item.php +++ b/tests/App/Entity/Item.php @@ -19,7 +19,7 @@ #[ORM\Entity] class Item { - #[ORM\Column(type: Types::DECIMAL)] + #[ORM\Column(type: Types::DECIMAL, precision: 2)] private string $offeredPrice; public function __construct( diff --git a/tests/App/Entity/Product.php b/tests/App/Entity/Product.php index f1e3967de..a3a213887 100644 --- a/tests/App/Entity/Product.php +++ b/tests/App/Entity/Product.php @@ -25,7 +25,7 @@ public function __construct( private int $id, #[ORM\Column(type: Types::STRING)] private string $name = '', - #[ORM\Column(type: Types::DECIMAL)] + #[ORM\Column(type: Types::DECIMAL, precision: 2)] private string $currentPrice = '0.0' ) { } diff --git a/tests/App/config/config.yml b/tests/App/config/config.yml index 75c740812..d6342a759 100644 --- a/tests/App/config/config.yml +++ b/tests/App/config/config.yml @@ -31,7 +31,10 @@ doctrine: use_savepoints: true orm: auto_generate_proxy_classes: true + enable_lazy_ghost_objects: true auto_mapping: true + report_fields_where_declared: true + validate_xml_mapping: true mappings: SonataORMTest: type: attribute diff --git a/tests/custom_bootstrap.php b/tests/custom_bootstrap.php index 5271a7454..5244a80b8 100644 --- a/tests/custom_bootstrap.php +++ b/tests/custom_bootstrap.php @@ -19,6 +19,7 @@ $kernel = new AppKernel($_SERVER['APP_ENV'] ?? 'test', (bool) ($_SERVER['APP_DEBUG'] ?? false)); $application = new Application($kernel); +$application->setCatchExceptions(false); $application->setAutoExit(false); $input = new ArrayInput([