Doctrine 1
  1. Doctrine 1
  2. DC-732

"charset" and "collation" column options cause seeking for a validator

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: Validators
    • Labels:
      None
    • Environment:
      Doctrine SVN 1.2 r.7676

      Description

      If a record has a column defined with 'charset' and/or 'collation' in its options, calling $record->save() triggers exception
      PHP Fatal error: Uncaught exception 'Doctrine_Exception' with message 'Validator named 'charset' not available.' in /[...]/lib/vendor/doctrine/Doctrine/Validator.php:56

      Fix is trivial, see attached patch

      Thank you

        Activity

        Hide
        Guilliam X added a comment -

        oops I had mis-clicked priority to max instead of minor...

        Show
        Guilliam X added a comment - oops I had mis-clicked priority to max instead of minor...
        Hide
        Guilliam X added a comment -

        Edited the patch with "branches/1.2" as root

        I don't provide a test case but they all run without failure after patching

        Show
        Guilliam X added a comment - Edited the patch with "branches/1.2" as root I don't provide a test case but they all run without failure after patching

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Guilliam X
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: