protected function getTableName()
    {
        if ($this->tableName) {
            // @todo Clearly needs refactoring. Blame me, I'll burn in hell for this anyways. - Thibaud
            if (trim($this->schemaName) !== '') {
                return $this->schemaName .'.' . $this->tableName;
            }

            return $this->tableName;
        }

        throw new \RuntimeException('Table name is not defined for ' . get_called_class());
    }