public function getCollectionsUsedByPrivateFields()
    {
        $map = [];

        foreach ($this->private as $name => $field) {
            $map[$name] = $field->getDependantCollections();
        }

        return $map;
    }
public function getCollectionsUsedByPrivateFields()
    {
        $map = [];

        foreach ($this->private as $name => $field) {
            $map[$name] = $field->getDependantCollections();
        }

        return $map;
    }
public function getCollectionsUsedByPrivateFields ( ) { $ map = [ ] ; foreach ( $ this -> private as $ name => $ field ) { $ map [ $ name ] = $ field -> getDependantCollections ( ) ; } return $ map ; }
Returns an array of collections indexed by field name.

[
"FieldName" => [1, 4, 5],
"OtherFieldName" => [4],
]
Returns an array of collections indexed by field name .