master
load
public function load(ClassMetadata $metadata) { $metadata->addPropertyConstraints('unidad', [ new Assert\NotBlank(), ]);