DoctrineExtensions icon indicating copy to clipboard operation
DoctrineExtensions copied to clipboard

Add ascii_string to allowed type for @Gedmo\Blameable

Open Nirator78 opened this issue 1 year ago • 0 comments

Feature Request

Summary

I'm encountering an error when attempting to use the ascii_string type in the @Gedmo\Blameable annotation. Currently, the error message is as follows:

bash

Field - [createdBy] type is not valid and must be 'string' or a one-to-many relation in class - App\Entity\MyClass

Description

The error occurs in Annotation.php at line 63, indicating that the ascii_string type is not recognized as valid for the createdBy field in the @Gedmo\Blameable annotation. As a solution, I propose adding support for the ascii_string type in this context.

Benefits

Error Resolution: This addition will address the error currently encountered when using ascii_string, allowing for seamless integration within the @Gedmo\Blameable annotation.

Additional Information

I want to add ascii_string because i'm using a Microsoft SQL Server database and the ascii_string allow me to create char column.

Thank you for your consideration.

Sincerely,

Nirator78 avatar Nov 23 '23 14:11 Nirator78