1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Mapping;
use Doctrine\DBAL\Platforms\AbstractPlatform;
/**
* A set of rules for determining the column, alias and table quotes.
*/
interface QuoteStrategy
{
/**
* Gets the (possibly quoted) column name for safe use in an SQL statement.
*/
public function getColumnName(string $fieldName, ClassMetadata $class, AbstractPlatform $platform): string;
/**
* Gets the (possibly quoted) primary table name for safe use in an SQL statement.
*/
public function getTableName(ClassMetadata $class, AbstractPlatform $platform): string;
/**
* Gets the (possibly quoted) sequence name for safe use in an SQL statement.
*
* @param mixed[] $definition
*/
public function getSequenceName(array $definition, ClassMetadata $class, AbstractPlatform $platform): string;
/** Gets the (possibly quoted) name of the join table. */
public function getJoinTableName(
ManyToManyOwningSideMapping $association,
ClassMetadata $class,
AbstractPlatform $platform,
): string;
/**
* Gets the (possibly quoted) join column name.
*/
public function getJoinColumnName(JoinColumnMapping $joinColumn, ClassMetadata $class, AbstractPlatform $platform): string;
/**
* Gets the (possibly quoted) join column name.
*/
public function getReferencedJoinColumnName(
JoinColumnMapping $joinColumn,
ClassMetadata $class,
AbstractPlatform $platform,
): string;
/**
* Gets the (possibly quoted) identifier column names for safe use in an SQL statement.
*
* @psalm-return list<string>
*/
public function getIdentifierColumnNames(ClassMetadata $class, AbstractPlatform $platform): array;
/**
* Gets the column alias.
*/
public function getColumnAlias(
string $columnName,
int $counter,
AbstractPlatform $platform,
ClassMetadata|null $class = null,
): string;
}
|