public function boot()
{
if (0 == $this->getBcScale()) {
$message = <<<'CONTENT'
[%s]: You need to add a bcscale() method greater than 0 in your AppKernel.php to ensure that prices are correctly computed.
Please refer to documentation: https://sonata-project.org/bundles/ecommerce/develop/doc/reference/bundles/price.html
CONTENT;
throw new \RuntimeException(sprintf($message, $this->getName()));
}
}