protected function setRelationDefine($parent)
    {
        $this->changeRelationModel();
        $this->setDefineValues($this->defineValues);
        $this->relations['thumbnails']['datas'] = $parent->thumbnails()->get(['slug','photo_width','photo_height'])->toArray();
        $this->relations['extras']['datas'] = $parent->extras()->get(['name','type'])->toArray();
        $this->setOperationRelation($this->relations);
    }
protected function setRelationDefine($parent)
    {
        $this->changeRelationModel();
        $this->setDefineValues($this->defineValues);
        $this->relations['thumbnails']['datas'] = $parent->thumbnails()->get(['slug','photo_width','photo_height'])->toArray();
        $this->relations['extras']['datas'] = $parent->extras()->get(['name','type'])->toArray();
        $this->setOperationRelation($this->relations);
    }
protected function setRelationDefine ( $ parent ) { $ this -> changeRelationModel ( ) ; $ this -> setDefineValues ( $ this -> defineValues ) ; $ this -> relations [ 'thumbnails' ] [ 'datas' ] = $ parent -> thumbnails ( ) -> get ( [ 'slug' , 'photo_width' , 'photo_height' ] ) -> toArray ( ) ; $ this -> relations [ 'extras' ] [ 'datas' ] = $ parent -> extras ( ) -> get ( [ 'name' , 'type' ] ) -> toArray ( ) ; $ this -> setOperationRelation ( $ this -> relations ) ; }
set relation define datas

@param $parent
@return void
set relation define datas