Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Validator] Declaration of Custom Constraint #18868

Closed
Assignees
xabbuh
Labels
ValidatorhasPRA Pull Request has already been submitted for this issue.
@maMykola

Description

@maMykola

Setup

Docs:https://symfony.com/doc/5.4/validation/custom_constraint.html#creating-the-constraint-class
Repo:https://github.com/maMykola/custom-validation-constraint

NameValue
Symfony5.4.28
PHP8.2.10

Steps to reproduce

  1. clone the repositorygit clone git@github.com:maMykola/custom-validation-constraint.git
  2. install packagescomposer install
  3. execute the commandbin/console app:validate-entity

Actual Result

The error shown in console:

[critical] Error thrown while running command "app:validate-entity". Message: "Unknown named parameter $mode"In AcmeEntity.php line 13:                                   Unknown named parameter $mode                                   app:validate-entity2023-09-15T11:57:01+00:00 [critical] Uncaught Error: Unknown named parameter $mode

Expected Result

The command should be executed without errors.

Metadata

Metadata

Assignees

Labels

ValidatorhasPRA Pull Request has already been submitted for this issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp