public function getValidator(array $locales=[]) {
		$validator = $this->getDefinition()->getEntityManager()->createValidator();
		return $this->prepareValidator($validator, $locales);
	}
public function getValidator(array $locales=[]) {
		$validator = $this->getDefinition()->getEntityManager()->createValidator();
		return $this->prepareValidator($validator, $locales);
	}
public function getValidator ( array $ locales = [ ] ) { $ validator = $ this -> getDefinition ( ) -> getEntityManager ( ) -> createValidator ( ) ; return $ this -> prepareValidator ( $ validator , $ locales ) ; }
Get a validator.
@param  array $locales
@return \Asgard\Validation\ValidatorInterface
Get a validator .