public function getTableName() { if (!$this->tableName) { $tableName = str_replace('Mapper', '', $this->getReflection()->getShortName()); $this->tableName = StringHelper::underscore($tableName); } return $this->tableName; }
public function getTableName() : string { if (!$this->tableName) { $namespace = explode('\\', $this->getReflection()->getNamespaceName()); array_shift($namespace); $this->tableName = Nextras\Orm\StorageReflection\StringHelper::underscore(implode($namespace)); } return $this->tableName ?: parent::getTableName(); }
public function formatStorageKey($key) { return StringHelper::underscore($key); }