public function getElementalRelations()
    {
        $hasOnes = $this->owner->hasOne();

        if (!$hasOnes) {
            return false;
        }

        $elementalAreaRelations = [];

        foreach ($hasOnes as $hasOneName => $hasOneClass) {
            if ($hasOneName === 'Parent' || $hasOneName === 'ParentID') {
                continue;
            }

            if ($hasOneClass == ElementalArea::class || is_subclass_of($hasOneClass, ElementalArea::class)) {
                $elementalAreaRelations[] = $hasOneName;
            }
        }

        return $elementalAreaRelations;
    }
public function getElementalRelations()
    {
        $hasOnes = $this->owner->hasOne();

        if (!$hasOnes) {
            return false;
        }

        $elementalAreaRelations = [];

        foreach ($hasOnes as $hasOneName => $hasOneClass) {
            if ($hasOneName === 'Parent' || $hasOneName === 'ParentID') {
                continue;
            }

            if ($hasOneClass == ElementalArea::class || is_subclass_of($hasOneClass, ElementalArea::class)) {
                $elementalAreaRelations[] = $hasOneName;
            }
        }

        return $elementalAreaRelations;
    }
public function getElementalRelations ( ) { $ hasOnes = $ this -> owner -> hasOne ( ) ; if ( ! $ hasOnes ) { return false ; } $ elementalAreaRelations = [ ] ; foreach ( $ hasOnes as $ hasOneName => $ hasOneClass ) { if ( $ hasOneName === 'Parent' || $ hasOneName === 'ParentID' ) { continue ; } if ( $ hasOneClass == ElementalArea :: class || is_subclass_of ( $ hasOneClass , ElementalArea :: class ) ) { $ elementalAreaRelations [ ] = $ hasOneName ; } } return $ elementalAreaRelations ; }
Returns an array of the relation names to ElementAreas. Ignores any
has_one fields named `Parent` as that would indicate that this is child
of an existing area

@return array
Returns an array of the relation names to ElementAreas . Ignores any has_one fields named Parent as that would indicate that this is child of an existing area