src/Entity/Reflection.php
public function getRelatedFiles(array $files = [])
    {
        if (in_array($this->fileName, $files)) {
            return $files;
        }

        $files[] = $this->fileName;
        foreach ($this->properties as $property) {
            if (in_array($property->getType(), [Reflection\Property::TYPE_COLLECTION, Reflection\Property::TYPE_ENTITY])) {
                $files += self::load($property->getTypeOption())->getRelatedFiles($files);
            }
        }
        return $files;
    }
public function getRelatedFiles(array $files = [])
    {
        if (in_array($this->fileName, $files)) {
            return $files;
        }

        $files[] = $this->fileName;
        foreach ($this->properties as $property) {
            if (in_array($property->getType(), [Reflection\Property::TYPE_COLLECTION, Reflection\Property::TYPE_ENTITY])) {
                $files += self::load($property->getTypeOption())->getRelatedFiles($files);
            }
        }
        return $files;
    }
public function getRelatedFiles ( array $ files = [ ] ) { if ( in_array ( $ this -> fileName , $ files ) ) { return $ files ; } $ files [ ] = $ this -> fileName ; foreach ( $ this -> properties as $ property ) { if ( in_array ( $ property -> getType ( ) , [ Reflection \ Property :: TYPE_COLLECTION , Reflection \ Property :: TYPE_ENTITY ] ) ) { $ files += self :: load ( $ property -> getTypeOption ( ) ) -> getRelatedFiles ( $ files ) ; } } return $ files ; }
Get arg's related files

@param array  $files

@return array
Get arg s related files