public function getRootFamilies()
    {
        $root = [];
        foreach ($this->getFamilies() as $family) {
            if ($family->isInstantiable()) {
                $p = $family->getParent();
                if (!$p || ($p && !$p->isInstantiable())) {
                    $root[$family->getCode()] = $family;
                }
            }
        }

        return $root;
    }
public function getRootFamilies()
    {
        $root = [];
        foreach ($this->getFamilies() as $family) {
            if ($family->isInstantiable()) {
                $p = $family->getParent();
                if (!$p || ($p && !$p->isInstantiable())) {
                    $root[$family->getCode()] = $family;
                }
            }
        }

        return $root;
    }
public function getRootFamilies ( ) { $ root = [ ] ; foreach ( $ this -> getFamilies ( ) as $ family ) { if ( $ family -> isInstantiable ( ) ) { $ p = $ family -> getParent ( ) ; if ( ! $ p || ( $ p && ! $ p -> isInstantiable ( ) ) ) { $ root [ $ family -> getCode ( ) ] = $ family ; } } } return $ root ; }
Get all instantiable families with no parent

@return array
Get all instantiable families with no parent