Skip to content

TablePrefixListener ​

php
final readonly class StanislasPoisson\FrenchPostalCode\Symfony\Doctrine\TablePrefixListener

Puts 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(): string

The namespace of the entities of the package, without the trailing separator.

loadClassMetadata() ​

php
public function loadClassMetadata(LoadClassMetadataEventArgs $loadClassMetadataEventArgs): void

Documentation of 5.0.2 , built from 38dcb21 on 5.0.2 by pipeline #45218049158 on 2026-11-23.