lithium\data\model\Relationship::__call PHP Method

__call() public method

Allows relationship configuration items to be queried by name as methods.
public __call ( string $name, array $args = [] ) : mixed
$name string The name of the configuration item to query.
$args array Unused.
return mixed Returns the value of the given configuration item.
    public function __call($name, $args = array())
    {
        return $this->data($name);
    }