Skip to content

Mapping with class prefix #128

Description

@ramzes13

When I set up the mapping for collections with class prefix, the documents class are set by default with 'Sokil\Mongo\Document'

Now in custom collections I can set documentClass field, but this field is @deprecated
@deprecated since 1.13 Use 'documentClass' declaration in mapping

I think it would be good to add also document class prefix in mapping, where there are many collections to define.

$client->map([
    'databaseName'  => array(
        collectionsPrefix => '\Class\Prefix',
        documentsPrefix => '\Class\DocumentPrefix',
     ),
]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions