protected function addLocalRelation(string $relation)
    {
        if (!in_array($relation, $this->localRelations)) {
            $this->localRelations[] = $relation;
        }
    }
protected function addLocalRelation(string $relation)
    {
        if (!in_array($relation, $this->localRelations)) {
            $this->localRelations[] = $relation;
        }
    }
protected function addLocalRelation ( string $ relation ) { if ( ! in_array ( $ relation , $ this -> localRelations ) ) { $ this -> localRelations [ ] = $ relation ; } }
Add a local relation method name once.

@param string $relation
Add a local relation method name once .