protected function validateRelation($name, $jory): void
    {
        if (empty($name)) {
            throw new JoryException('A relations name should not be empty. (Location: '.$this->address.'relations)');
        }
        // The data in $jory is another jory array, validate recursive with new validator.
        (new self($jory, $this->address.$name))->validate();
    }
protected function validateRelation($name, $jory): void
    {
        if (empty($name)) {
            throw new JoryException('A relations name should not be empty. (Location: '.$this->address.'relations)');
        }
        // The data in $jory is another jory array, validate recursive with new validator.
        (new self($jory, $this->address.$name))->validate();
    }
protected function validateRelation ( $ name , $ jory ) : void { if ( empty ( $ name ) ) { throw new JoryException ( 'A relations name should not be empty. (Location: ' . $ this -> address . 'relations)' ) ; } // The data in $jory is another jory array, validate recursive with new validator. ( new self ( $ jory , $ this -> address . $ name ) ) -> validate ( ) ; }
Validate a single relation
Throws a JoryException on failure.

@throws JoryException
Validate a single relation Throws a JoryException on failure .