| Methods |
protected
|
_setName(string $name): void
Sets the name of this asset.
Sets the name of this asset.
|
#
|
public
|
isInDefaultNamespace(string $defaultNamespaceName): bool
Is this asset in the default namespace?
Is this asset in the default namespace?
|
#
|
public
|
getNamespaceName(): string|null
Gets the namespace name of this asset.
Gets the namespace name of this asset.
If NULL is returned this means the default namespace is used.
|
#
|
public
|
getShortestName(string|null $defaultNamespaceName): string
The shortest name is stripped of the default namespace. All other
namespaced elements are returned as full-qualified…
The shortest name is stripped of the default namespace. All other
namespaced elements are returned as full-qualified names.
|
#
|
public
|
getFullQualifiedName(string $defaultNamespaceName): string
The normalized name is full-qualified and lower-cased. Lower-casing is
actually wrong, but we have to do it to keep our…
The normalized name is full-qualified and lower-cased. Lower-casing is
actually wrong, but we have to do it to keep our sanity. If you are
using database objects that only differentiate in the casing (FOO vs
Foo) then you will NOT be able to use Doctrine Schema abstraction.
Every non-namespaced element is prefixed with the default namespace
name which is passed as argument to this method.
Deprecated
Use {@see getNamespaceName()} and {@see getName()} instead.
|
#
|
public
|
isQuoted(): bool
Checks if this asset's name is quoted.
Checks if this asset's name is quoted.
|
#
|
protected
|
isIdentifierQuoted(string $identifier): bool
Checks if this identifier is quoted.
Checks if this identifier is quoted.
|
#
|
protected
|
trimQuotes(string $identifier): string
Trim quotes from the identifier.
Trim quotes from the identifier.
|
#
|
public
|
getName(): string
Returns the name of this schema asset.
Returns the name of this schema asset.
|
#
|
public
|
getQuotedName(AbstractPlatform $platform): string
Gets the quoted representation of this asset but only if it was defined with one. Otherwise
return the plain unquoted…
Gets the quoted representation of this asset but only if it was defined with one. Otherwise
return the plain unquoted value as inserted.
|
#
|
protected
|
_generateIdentifierName(string[] $columnNames, string $prefix = '', int $maxSize = 30): string
Generates an identifier from a list of column names obeying a certain string length.
Generates an identifier from a list of column names obeying a certain string length.
This is especially important for Oracle, since it does not allow identifiers larger than 30 chars,
however building idents automatically for foreign keys, composite keys or such can easily create
very long names.
|
#
|