public function prepareValidator(\Asgard\Validation\ValidatorInterface $validator) {
		if(isset($this->params['validation'])) {
			$validation = $this->params['validation'];
			foreach($validation as $name=>$params) {
				if(is_integer($name)) {
					$name = $params;
					$params = [];
				}
				if($name === 'required')
					$name = 'ormrequired';
				$validator->rule($name, $params);
			}
		}
	}
public function prepareValidator(\Asgard\Validation\ValidatorInterface $validator) {
		if(isset($this->params['validation'])) {
			$validation = $this->params['validation'];
			foreach($validation as $name=>$params) {
				if(is_integer($name)) {
					$name = $params;
					$params = [];
				}
				if($name === 'required')
					$name = 'ormrequired';
				$validator->rule($name, $params);
			}
		}
	}
public function prepareValidator ( \ Asgard \ Validation \ ValidatorInterface $ validator ) { if ( isset ( $ this -> params [ 'validation' ] ) ) { $ validation = $ this -> params [ 'validation' ] ; foreach ( $ validation as $ name => $ params ) { if ( is_integer ( $ name ) ) { $ name = $ params ; $ params = [ ] ; } if ( $ name === 'required' ) $ name = 'ormrequired' ; $ validator -> rule ( $ name , $ params ) ; } } }
Get the relation validation rules.
@return array
Get the relation validation rules .