source/Spiral/ORM/Helpers/RelationOptions.php
public function define(string $option)
    {
        if (!array_key_exists($option, $this->options)) {
            throw new OptionsException("Undefined relation option '{$option}'");
        }

        return $this->options[$option];
    }
public function define(string $option)
    {
        if (!array_key_exists($option, $this->options)) {
            throw new OptionsException("Undefined relation option '{$option}'");
        }

        return $this->options[$option];
    }
public function define ( string $ option ) { if ( ! array_key_exists ( $ option , $ this -> options ) ) { throw new OptionsException ( "Undefined relation option '{$option}'" ) ; } return $ this -> options [ $ option ] ; }
Get value for a specific option. Attention, option MUST exist in template in order to
be retrievable.

@param string $option

@return mixed

@throws OptionsException
Get value for a specific option . Attention option MUST exist in template in order to be retrievable .