Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Bug gii/api generated rules: email_id #159

@siggi-k

Description

@siggi-k

initial

  • MariaDB
  • "schema.yaml"
    In my table there is a reference to another table which has the word "mail".

mail_schema

reproduction steps

  • execute ./yii gii/api to generate code and update model

bug

  • For the automatically generated rules, this attribute is checked to ensure that it is a valid email.
    The check is incorrect mainly because it is a reference to the primaryKey from another table. It is therefore clearly an integer and obviously cannot be validated for email

mail_rule

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions