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 next , built from 068662f on main by pipeline #37508150537 on 2026-10-06.