Appearance
TablePrefixListener
php
final readonly class StanislasPoisson\FrenchPostalCode\Symfony\Doctrine\TablePrefixListenerPuts the prefix of the configuration in front of the name of the tables of the package.
Many applications already own a cities or a regions table. The prefix is added when Doctrine reads the mapping, so the schema tool, the migrations and the queries all see the prefixed names.
Source: src/Symfony/Doctrine/TablePrefixListener.php
Methods
__construct()
php
public function __construct(string $prefix)namespace()
php
public static function namespace(): stringThe namespace of the entities of the package, without the trailing separator.
loadClassMetadata()
php
public function loadClassMetadata(LoadClassMetadataEventArgs $loadClassMetadataEventArgs): void