public function errors($groups=[]) {
		$data = $this->toArrayRaw();
		$validator = $this->getValidator();
		$report = $this->getDefinition()->trigger('validation', [$this, $validator, $groups, &$data], function($chain, $entity, $validator, $groups, &$data) {
			$report = $validator->errors($data, $groups);
			$report->setSelf('Entity is not valid');
			return $report;
		});

		return $report;
	}
public function errors($groups=[]) {
		$data = $this->toArrayRaw();
		$validator = $this->getValidator();
		$report = $this->getDefinition()->trigger('validation', [$this, $validator, $groups, &$data], function($chain, $entity, $validator, $groups, &$data) {
			$report = $validator->errors($data, $groups);
			$report->setSelf('Entity is not valid');
			return $report;
		});

		return $report;
	}
public function errors ( $ groups = [ ] ) { $ data = $ this -> toArrayRaw ( ) ; $ validator = $ this -> getValidator ( ) ; $ report = $ this -> getDefinition ( ) -> trigger ( 'validation' , [ $ this , $ validator , $ groups , & $ data ] , function ( $ chain , $ entity , $ validator , $ groups , & $ data ) { $ report = $ validator -> errors ( $ data , $ groups ) ; $ report -> setSelf ( 'Entity is not valid' ) ; return $ report ; } ) ; return $ report ; }
Return entity errors.
@param  array|string|null $groups validation groups
@return \Asgard\Validation\Report
Return entity errors .