Validator calls
In
OrderItemType.php
line ():
No violations
[ "value" => 900000 "constraints" => [ Symfony\Component\Validator\Constraints\GreaterThanOrEqual {#22523 +payload: null +groups: [ "Default" ] +message: "This value should be greater than or equal to {{ compared_value }}." +value: 0 +propertyPath: null } ] "groups" => null ]
In
OrderItemType.php
line ():
No violations
[ "value" => 35000 "constraints" => [ Symfony\Component\Validator\Constraints\GreaterThanOrEqual {#22762 +payload: null +groups: [ "Default" ] +message: "This value should be greater than or equal to {{ compared_value }}." +value: 0 +propertyPath: null } ] "groups" => null ]
In
OrderItemType.php
line ():
No violations
// 値引き明細: 金額 -> 負, 個数 -> 正case OrderItemTypeMaster::DISCOUNT:$errors = $this->validator->validate($OrderItem->getPrice(), [new Assert\LessThanOrEqual(0)]);$this->addErrorsIfExists($form['price'], $errors);$errors = $this->validator->validate($OrderItem->getQuantity(), [new Assert\GreaterThanOrEqual(0)]);$this->addErrorsIfExists($form['quantity'], $errors);
[ "value" => -220000 "constraints" => [ Symfony\Component\Validator\Constraints\LessThanOrEqual {#22845 +payload: null +groups: [ "Default" ] +message: "This value should be less than or equal to {{ compared_value }}." +value: 0 +propertyPath: null } ] "groups" => null ]
In
OrderItemType.php
line ():
No violations
case OrderItemTypeMaster::DISCOUNT:$errors = $this->validator->validate($OrderItem->getPrice(), [new Assert\LessThanOrEqual(0)]);$this->addErrorsIfExists($form['price'], $errors);$errors = $this->validator->validate($OrderItem->getQuantity(), [new Assert\GreaterThanOrEqual(0)]);$this->addErrorsIfExists($form['quantity'], $errors);break;
[ "value" => 1 "constraints" => [ Symfony\Component\Validator\Constraints\GreaterThanOrEqual {#22846 +payload: null +groups: [ "Default" ] +message: "This value should be greater than or equal to {{ compared_value }}." +value: 0 +propertyPath: null } ] "groups" => null ]
In
ValidationListener.php
line ():
No violations
if ($form->isRoot()) {// Form groups are validated internally (FormValidator). Here we don't set groups as they are retrieved into the validator.foreach ($this->validator->validate($form) as $violation) {// Allow the "invalid" constraint to be put onto// non-synchronized forms$allowNonSynchronized = $violation->getConstraint() instanceof Form && Form::NOT_SYNCHRONIZED_ERROR === $violation->getCode();
[ "value" => Symfony\Component\Form\Form {#19189 name: "order" type_class: "Eccube\Form\Type\Admin\OrderType" data: Eccube\Entity\Order {#17554 -id: 1325 -pre_order_id: "e20a2c27cc61caeca783441e37c6b89ffa273a32" -order_no: 1325 -message: null -name01: "株式会社モトエス" -name02: "エックス" -kana01: "モトエス" -kana02: "エックス" -company_name: null -email: "msx@motosx.com" -phone_number: "082-962-1760" -postal_code: "7310124" -addr01: "広島市安佐南区大町東" -addr02: "1-2-18" -birth: null -subtotal: 1028500.0 -discount: 242000.0 -delivery_fee_total: 0 -charge: 0 -tax: 71500.0 -total: 786500.0 -payment_total: 786500.0 -payment_method: "銀行振込" -note: null -create_date: DateTime @1787561740 {#23621 date: 2026-08-24 08:55:40.446770 UTC (+00:00) } -update_date: DateTime @1787561740 {#22896 date: 2026-08-24 08:55:40.454290 UTC (+00:00) } -order_date: DateTime @1787561740 {#23744 date: 2026-08-24 08:55:40.440821 UTC (+00:00) } -payment_date: null -currency_code: "JPY" -complete_message: null -complete_mail_message: null -OrderItems: Doctrine\ORM\PersistentCollection {#23713 …} -Shippings: Doctrine\ORM\PersistentCollection {#23566 …} -MailHistories: Doctrine\ORM\PersistentCollection {#23411 …} -Customer: Eccube\Entity\Customer {#22894 …} -Country: null -Pref: Eccube\Entity\Master\Pref {#20879 …} -Sex: null -Job: null -Payment: Eccube\Entity\Payment {#20952 …} -DeviceType: null -CustomerOrderStatus: null -OrderStatusColor: null -OrderStatus: Eccube\Entity\Master\OrderStatus {#23741 …} -_calc_dealer_rank: false -present_dealer_rank_name: "" -dealer_rank_id: null -dealer_rank_name: null -add_point: 0 -use_point: 0.0 } } "constraints" => null "groups" => null ]