Skip to content

Using validation annotations in doctrine entity #57

@Glideh

Description

@Glideh

When using a doctrine writer, is there a way to take advantage of the doctrine annotations already there ?

// Doctrine entity class
/**
 * @var string
 *
 * @ORM\Column(type="string", length=150, nullable=false)
 * @Assert\NotBlank
 */
private $name;

So we don't have to redefine them in a ValidatorFilter.
Or do we have to use reflection to inject them into ValidatorFilters ?

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