Skip to content

Mapping improvement #31

@pierre-H

Description

@pierre-H

Hello,

First, thank you for this very useful bundle !

It would be great to be able to declare the mapping with :

  • PHP 8 attributes. Ex:
<?php

#[TypesenseCollection(default_sorting_field: 'title')]
class Book {
    #[TypesenseField, TypesenseId]
    private ?int $id = null;

    #[TypesenseField(name: 'book_id')]
    private ?string $title = null:

    ...
}
  • with yaml/xml resources files in ordre to be able to declare in a bundle a mapping with the possibility to override it.

A good example of this is Api-Platform : you can declare ApiResource with attributes or yaml files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions