Doctrine 1
  1. Doctrine 1
  2. DC-163

Validator throws out a data type which the schema processing has accepted

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0-BETA1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Fedora 10, symfony 1.2, postgresql 8.4.1. I have been unable to find any information as to which version of Doctrine I have: it came with symfony 1.2

      Description

      Doctrine accepts 'char' in the (yml) schema, and creates the database and model.
      Then an attempt to save a record raises a Doctrine_Validator_Exception, which turns out to contain no validation message, but just the cryptic
      [_errors:protected] => Array
      (
      [nickname] => Array
      (
      [0] => type
      )

      )

      [_validators:protected] => Array
      (
      )

      Only by looking at the source did I discover that what this means is that the validator does not accept the column type 'char' - because it's not hard-coded in Doctrine_Validator::isValidType.

      I've vacillated over whether to classify this as 'Major' or Minor': once I've realised what's going on, it's easy to work round; but it is a show-stopper for a Doctrine novice.

        Activity

        Hide
        Jonathan H. Wage added a comment -

        This is already fixed in the Doctrine 1.2 branch which comes with symfony 1.3

        Show
        Jonathan H. Wage added a comment - This is already fixed in the Doctrine 1.2 branch which comes with symfony 1.3

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Colin Fine
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: