protected function addMorphClass(MorphOneOrMany $relation)
    {
        $this->populator->addMorphClass(get_class($this->model), get_class($relation->getRelated()));
    }
protected function addMorphClass(MorphOneOrMany $relation)
    {
        $this->populator->addMorphClass(get_class($this->model), get_class($relation->getRelated()));
    }
protected function addMorphClass ( MorphOneOrMany $ relation ) { $ this -> populator -> addMorphClass ( get_class ( $ this -> model ) , get_class ( $ relation -> getRelated ( ) ) ) ; }
Save a potential owning class for a child class in a many-to-one
or one-to-one polymorphic relation with it,
so that the child model will be associated to one of its owners when it is populated.

@param  MorphOneOrMany $relation
@return void
Save a potential owning class for a child class in a many - to - one or one - to - one polymorphic relation with it so that the child model will be associated to one of its owners when it is populated .