Validator calls
In
OrderItemType.php
line 261 (context):
No violations
[ "value" => 2500.0 "constraints" => [ GreaterThanOrEqual {#5154 +message: "This value should be greater than or equal to {{ compared_value }}." +value: 0 +propertyPath: null +payload: null +"groups": [ "Default" ] } ] "groups" => null ]
In
OrderItemType.php
line 277 (context):
No violations
// 送料, 手数料: 金額 -> 正, 個数 -> 正
case OrderItemTypeMaster::DELIVERY_FEE:
case OrderItemTypeMaster::CHARGE:
$errors = $this->validator->validate($OrderItem->getPrice(), [new Assert\GreaterThanOrEqual(0)]);
$this->addErrorsIfExists($form['price'], $errors);
$errors = $this->validator->validate($OrderItem->getQuantity(), [new Assert\GreaterThanOrEqual(0)]);
$this->addErrorsIfExists($form['quantity'], $errors);
[ "value" => 720.0 "constraints" => [ GreaterThanOrEqual {#3804 +message: "This value should be greater than or equal to {{ compared_value }}." +value: 0 +propertyPath: null +payload: null +"groups": [ "Default" ] } ] "groups" => null ]
In
OrderItemType.php
line 279 (context):
No violations
case OrderItemTypeMaster::CHARGE:
$errors = $this->validator->validate($OrderItem->getPrice(), [new Assert\GreaterThanOrEqual(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" => [ GreaterThanOrEqual {#5155 +message: "This value should be greater than or equal to {{ compared_value }}." +value: 0 +propertyPath: null +payload: null +"groups": [ "Default" ] } ] "groups" => null ]
In
ValidationListener.php
line 55 (context):
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
// ConstraintViolation::getConstraint() must not expect to provide a constraint as long as Symfony\Component\Validator\ExecutionContext exists (before 3.0)
[ "value" => Form {#3523 name: "order" type_class: "Eccube\Form\Type\Admin\OrderType" data: Order {#2619 -id: 24040 -pre_order_id: "b6cbb87f67cde8740b490d78bf8f1160f125bd3e" -order_no: "24040" -message: null -name01: "石垣" -name02: "洋子" -kana01: "イシガキ" -kana02: "ヨウコ" -company_name: null -email: "yyyy128yyy@gmail.com" -phone_number: "08055510948" -postal_code: "9920055" -addr01: "米沢市御廟" -addr02: "3丁目7番26号" -birth: DateTime @22863600 {#5297 date: 1970-09-22 15:00:00.0 UTC (+00:00) } -subtotal: 2750.0 -discount: 0 -delivery_fee_total: 720.0 -charge: 0 -tax: 315.0 -total: 3470.0 -payment_total: 3470.0 -payment_method: "郵便振替" -note: """ 2025/06/12 電話でご注文 以前と同じ名刺を希望 〈阿部〉 202404 https://lifewavejapan.com/kanri/order/21750/edit\r\n LINE manayuri0316\r\n 電話 09094232198\r\n 名前 関根百合子\r\n 英語名前 Yuriko Sekine 住所不要\r\n バックオフィス US19590316\r\n \r\n 2025/06/18 入金ないのでお電話したが不在〈阿部〉\r\n 2025/06/20 お電話いただき、振込ができなかったみたいで、、再度行っていただく\r\n 入金確認後、デザインメール送る予定〈阿部〉\r\n デザイン確認メール送信済\r\n \r\n 2025/06/30 11:41 メール確認していただいたかお電話した→OK """ -create_date: DateTime @1749707664 {#2652 date: 2025-06-12 14:54:24.0 Asia/Tokyo (+09:00) } -update_date: DateTime @1751357507 {#5404 date: 2025-07-01 08:11:47.030856 UTC (+00:00) } -order_date: DateTime @1749707664 {#2638 date: 2025-06-12 05:54:24.0 UTC (+00:00) } -payment_date: DateTime @1750398223 {#2617 date: 2025-06-20 14:43:43.0 Asia/Tokyo (+09:00) } -currency_code: "JPY" -complete_message: null -complete_mail_message: null -OrderItems: PersistentCollection {#2739 …} -Shippings: PersistentCollection {#2812 …} -MailHistories: PersistentCollection {#2719 …} -Customer: Customer {#2730 …} -Country: null -Pref: Pref {#2731 …} -Sex: Sex {#2630 …} -Job: Job {#2848 …} -Payment: Payment {#2858 …} -DeviceType: null -CustomerOrderStatus: CustomerOrderStatus {#2868 …} -OrderStatusColor: OrderStatusColor {#2878 …} -OrderStatus: OrderStatus {#4287 …} -AnnotationReader: AnnotationReader {#584 …} -add_point: "0" -use_point: 0.0 -trans_code: null } } "constraints" => null "groups" => null ]