You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was already using this extension for some functions and tried using the text[] type but doctrine thrown this exception when I tried to use it in an entity.
I was able to fix that by extending TextArray and adding this method:
is there something wrong with my config ? or maybe that’s something caused by the latest version of doctrine ? if not do you think this method should be added to BaseType ?
I just realized that it’s very probably because I missed the mapping_types config
while this solves my issue without having to extend the class, it would be nice to implement getMappedDatabaseTypes to avoid having to add this configuration in the first place
feel free to close this issue if you’d rather keep it as it is !
I think the package can make use of some modernisation for most recent Doctrine versions. Would you be able to help with opening a PR for getMappedDatabaseTypes, please?
I was already using this extension for some functions and tried using the
text[]
type but doctrine thrown this exception when I tried to use it in an entity.I was able to fix that by extending
TextArray
and adding this method:is there something wrong with my config ? or maybe that’s something caused by the latest version of doctrine ? if not do you think this method should be added to
BaseType
?doctrine/dbal: 2.10.2
doctrine/orm: 2.7.3
doctrine/doctrine-bundle: 2.1.0
symfony: 5.1.*
The text was updated successfully, but these errors were encountered: