tflori/orm

just another orm...

View the Project on GitHub tflori/orm

Build Status Test Coverage Maintainability Latest Stable Version Total Downloads

» API Reference » ORM\Entity\Naming

ORM\Entity\Naming

Table of Contents

Abstract

Methods

ORM\Entity\Naming::getAttributeName

public static function getAttributeName(string $column): string
Get the column name of $attribute

The column names can not be specified by template. Instead they are constructed by $columnPrefix and enforced to $namingSchemeColumn.

ATTENTION: If your overwrite this method remember that getColumnName(getColumnName($name)) have to be exactly the same as getColumnName($name).

Static   This method is static.
Returns string  
Parameters
Parameter Type Description
$column string  

ORM\Entity\Naming::getAttributeName

↑ top


ORM\Entity\Naming::getColumnName

public static function getColumnName(string $attribute): string
Get the column name of $attribute

The column names can not be specified by template. Instead they are constructed by $columnPrefix and enforced to $namingSchemeColumn.

ATTENTION: If your overwrite this method remember that getColumnName(getColumnName($name)) have to be exactly the same as getColumnName($name).

Static   This method is static.
Returns string  
Parameters
Parameter Type Description
$attribute string  

ORM\Entity\Naming::getColumnName

↑ top


ORM\Entity\Naming::getNamingSchemeColumn

public static function getNamingSchemeColumn(): string

Warning: this method is deprecated. | Static | | This method is static. | | Returns | string | |

ORM\Entity\Naming::getNamingSchemeColumn

↑ top


ORM\Entity\Naming::getNamingSchemeMethods

public static function getNamingSchemeMethods(): string

Warning: this method is deprecated. | Static | | This method is static. | | Returns | string | |

ORM\Entity\Naming::getNamingSchemeMethods

↑ top


ORM\Entity\Naming::getNamingSchemeTable

public static function getNamingSchemeTable(): string

Warning: this method is deprecated. | Static | | This method is static. | | Returns | string | |

ORM\Entity\Naming::getNamingSchemeTable

↑ top


ORM\Entity\Naming::getTableName

public static function getTableName(): string
Get the table name

The table name is constructed by $tableNameTemplate and $namingSchemeTable. It can be overwritten by $tableName.

Static   This method is static.
Returns string  

ORM\Entity\Naming::getTableName

↑ top


ORM\Entity\Naming::getTableNameTemplate

public static function getTableNameTemplate(): string

Warning: this method is deprecated. | Static | | This method is static. | | Returns | string | |

ORM\Entity\Naming::getTableNameTemplate

↑ top


ORM\Entity\Naming::setNamingSchemeColumn

public static function setNamingSchemeColumn(string $namingSchemeColumn): mixed

Warning: this method is deprecated. | Static | | This method is static. | | Returns | mixed | |

Parameters
Parameter Type Description
$namingSchemeColumn string  

ORM\Entity\Naming::setNamingSchemeColumn

↑ top


ORM\Entity\Naming::setNamingSchemeMethods

public static function setNamingSchemeMethods(
    string $namingSchemeMethods, 
): mixed

Warning: this method is deprecated. | Static | | This method is static. | | Returns | mixed | |

Parameters
Parameter Type Description
$namingSchemeMethods string  

ORM\Entity\Naming::setNamingSchemeMethods

↑ top


ORM\Entity\Naming::setNamingSchemeTable

public static function setNamingSchemeTable(string $namingSchemeTable): mixed

Warning: this method is deprecated. | Static | | This method is static. | | Returns | mixed | |

Parameters
Parameter Type Description
$namingSchemeTable string  

ORM\Entity\Naming::setNamingSchemeTable

↑ top


ORM\Entity\Naming::setTableNameTemplate

public static function setTableNameTemplate(string $tableNameTemplate): mixed

Warning: this method is deprecated. | Static | | This method is static. | | Returns | mixed | |

Parameters
Parameter Type Description
$tableNameTemplate string  

ORM\Entity\Naming::setTableNameTemplate

↑ top