-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
type:featureNew feature.New feature.
Description
I have an idea!
Hi,
I would love to add a check constraint to my table using attributes.
I imagine the functionality as following, but it is just a draft.
#[Entity]
#[Index(columns: ['a'], unique: true)]
#[Check(expression: 'a > b')]
class EntityDef
{
#[Column(type: 'integer')]
private int $a;
#[Column(type: 'integer')]
private int $b;
}I am open to bounty this feature.
roxblnfk
Metadata
Metadata
Labels
type:featureNew feature.New feature.
Type
Projects
Status
No status