Skip to content

UniqueConstraint Attribute does not support flags while DBAL does #11909

@raalderink

Description

@raalderink

Bug Report

Q A
Version all

Summary

The UniqueConstraint attribute does not contain the flags property like the Index attribute does. However, in DBAL, the UniqueConstraint does allow for flags to be passed to it. Since this is missing, we are unable to add the MySQL fulltext flag to this unique column.

Current behavior

flags property does not exist

Expected behavior

flags property is available so flags can be added to UniqueConstraint through PHP's Attributes

public function __construct(
public readonly string|null $name = null,
public readonly array|null $columns = null,
public readonly array|null $fields = null,
public readonly array|null $options = null,
) {

https://github.com/doctrine/dbal/blob/3004e93509da3616cc298fb5805db413cc903ef6/src/Schema/UniqueConstraint.php#L30

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