LazyRecord\Schema\SchemaCollection::expandSchemaDependency PHP Method

expandSchemaDependency() protected method

protected expandSchemaDependency ( DeclareSchema $schema )
$schema DeclareSchema
    protected function expandSchemaDependency(DeclareSchema $schema)
    {
        $expands = array();
        $refs = $schema->getReferenceSchemas();
        foreach ($refs as $refClass => $v) {
            // $refSchema = new $refClass;
            // $expand = array_merge($expand, $this->expandSchemaDependency($refSchema), array($refClass));
            $expands[] = $refClass;
        }
        $expands[] = get_class($schema);
        return array_unique($expands);
    }