Skip to content

Trying to load invalid (unavailable) CouchDB UniqueEntity validator #1775

Closed
@dannydorfel

Description

@dannydorfel

Symfony version: Symfony 2.7

Attempted to load class "UniqueEntity" from namespace
"\Symfony\Component\Validator\Constraints\Doctrine\Bundle\CouchDBBundle\Validator\Constraints".
Did you forget a "use" statement for "Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity"?

Calling the register form, the metadata for the user document is created and the metadata loader somehow also loads the couchDB validation constraints. Which aren't present and the loader adds the default validator prefix to the classname declaration. Hence: Symfony\Component...\Doctrine\Bundle...

It seems that the loader behaviour in Symfony2 has changed and also reads all xml files in the validation folder by default. Changing the Resources/config/validation folder would fix the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions