hyperf / hyperf/swagger

gen:swagger-schema生成schema文件的时候如果有表前缀那么就会导致无法获取表字段

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
20
Forks
4
PR merge metrics
No merged PRs in 30d

Description

`public function __construct(public ReflectionClass $ref, public Model $model)
{
/** @var Connection $connection */
$connection = $this->model->getConnection();
$builder = $connection->getSchemaBuilder();

$this->columns = array_filter($builder->getColumns(), function (Column $column) {
return $column->getTable() === $this->model->getTable();
});
}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.