Skip to content

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

@sinhang

Description

@sinhang

`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();
    });
}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions