angelk/Propel2

Symfony validator investigation & fix

Opened this issue · 0 comments

propelorm@b7c8ac9

Old constraints:

array(2) {
  [0] =>
  class Symfony\Component\Validator\Constraints\Regex#91 (6) {
    public $message =>
    string(25) "Please enter a valid ISBN"
    public $pattern =>
    string(9) "/[^\d-]+/"
    public $htmlPattern =>
    NULL
    public $match =>
    bool(false)
    public $payload =>
    NULL
    public $groups =>
    array(3) {
      [0] =>
      string(7) "Default"
      [1] =>
      string(19) "ValidateTriggerBook"
      [2] =>
      string(22) "ValidateTriggerFiction"
    }
  }
  [1] =>
  class Symfony\Component\Validator\Constraints\Regex#93 (6) {
    public $message =>
    string(25) "Please enter a valid ISBN"
    public $pattern =>
    string(9) "/[^\d-]+/"
    public $htmlPattern =>
    NULL
    public $match =>
    bool(false)
    public $payload =>
    NULL
    public $groups =>
    array(2) {
      [0] =>
      string(7) "Default"
      [1] =>
      string(22) "ValidateTriggerFiction"
    }
  }
}

New (failing) new one:

array(1) {
  [0] =>
  class Symfony\Component\Validator\Constraints\Regex#78 (6) {
    public $message =>
    string(25) "Please enter a valid ISBN"
    public $pattern =>
    string(9) "/[^\d-]+/"
    public $htmlPattern =>
    NULL
    public $match =>
    bool(false)
    public $payload =>
    NULL
    public $groups =>
    array(2) {
      [0] =>
      string(7) "Default"
      [1] =>
      string(22) "ValidateTriggerFiction"
    }
  }
}