Unique contraint fails when the value is part of an existing value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Unknown
    • laravel-4.0.0
    • Affects Version/s: None
    • Component/s: Laravel
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Using Laravel Validation with MongoDB 
      DatabasePresenceVerifier. If the database contains the value "John Doe", the value "John" is inv
       
      Insert { name: "John Doe"} in the database.
      Validate { name: "John" } with contraint { name: "unique" }
       
      Expected : the value is valid.
      Observation : the value is invalid.

              Assignee:
              Jérôme Tamarelle
              Reporter:
              Jérôme Tamarelle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: