public getTableName ( $entityName ) : string | ||
$entityName | ||
return | string |
public function getTableName($entityName)
{
$tableName = $this->isEntity($entityName) ? $this->getEntityInfo($entityName)->tableName : $entityName;
return $tableName;
}
private function saveId($entityName, $id, $vpId) { $vpIdTableName = $this->schemaInfo->getPrefixedTableName('vp_id'); $tableName = $this->schemaInfo->getTableName($entityName); $query = "INSERT INTO {$vpIdTableName} (`vp_id`, `table`, `id`) VALUES (UNHEX('{$vpId}'), \"{$tableName}\", {$id})"; $this->database->query($query); }