protected function myErrors($validationGroups=[]) {
		$data = $this->data();
		$data = array_filter($data, function($v) {
			if($v instanceof \Asgard\Http\HttpFile && $v->error())
				return false;
			return $v !== null;
		});

		#callback to edit data before passing them to entity
		if($cb = $this->preEntitySetCallback)
			$cb($this, $data);

		if($this->locales) {
			foreach($data as $name=>$value) {
				foreach($this->locales as $locale)
					$this->entity->set($name, $value, $locale, true, true, true);
			}
		}
		else
			$this->entity->set($data, null, null, true, true, true);

		$report = parent::myErrors($validationGroups);
		$report->merge($this->entity->errors($validationGroups));

		return $report;
	}
protected function myErrors($validationGroups=[]) {
		$data = $this->data();
		$data = array_filter($data, function($v) {
			if($v instanceof \Asgard\Http\HttpFile && $v->error())
				return false;
			return $v !== null;
		});

		#callback to edit data before passing them to entity
		if($cb = $this->preEntitySetCallback)
			$cb($this, $data);

		if($this->locales) {
			foreach($data as $name=>$value) {
				foreach($this->locales as $locale)
					$this->entity->set($name, $value, $locale, true, true, true);
			}
		}
		else
			$this->entity->set($data, null, null, true, true, true);

		$report = parent::myErrors($validationGroups);
		$report->merge($this->entity->errors($validationGroups));

		return $report;
	}
protected function myErrors ( $ validationGroups = [ ] ) { $ data = $ this -> data ( ) ; $ data = array_filter ( $ data , function ( $ v ) { if ( $ v instanceof \ Asgard \ Http \ HttpFile && $ v -> error ( ) ) return false ; return $ v !== null ; } ) ; #callback to edit data before passing them to entity
 if ( $ cb = $ this -> preEntitySetCallback ) $ cb ( $ this , $ data ) ; if ( $ this -> locales ) { foreach ( $ data as $ name => $ value ) { foreach ( $ this -> locales as $ locale ) $ this -> entity -> set ( $ name , $ value , $ locale , true , true , true ) ; } } else $ this -> entity -> set ( $ data , null , null , true , true , true ) ; $ report = parent :: myErrors ( $ validationGroups ) ; $ report -> merge ( $ this -> entity -> errors ( $ validationGroups ) ) ; return $ report ; }
Return its own errors.
@return \Asgard\Validation\Report
Return its own errors .