protected function getMaxIdentifierLength() { if ($this->tableNameLengthLimit === null) { $this->tableNameLengthLimit = $this->entityManager->getConnection()->getDatabasePlatform()->getMaxIdentifierLength(); } return $this->tableNameLengthLimit; }