Elasticsearch - tree attrubutes

Hello!

How to use the tree structure in the AR model?

Like this:


public function attributes()

    {

        return ['owner'=>['name','phone','address']];

    }

How to accept validation rules to name or phone?




public function attributes()

    {

        return ['owner'=>['name','phone','address']];

    }



What do you want to represent?