-
Notifications
You must be signed in to change notification settings - Fork 4
What if user id is not integer? #29
Comments
Seems that overriding xml mappings doesn't work, here another issue I've just opened doctrine/DoctrineBundle#846 |
The easiest solution for me is to change the field type to a string. Mapping overriding in doctrine is painful, I don't want to document something like this. The last possible solution I see, is that you implement your own channel. |
Yes, convert id to string just for consistency with your other bundle. You see it appears that overriding in doctrine is broken or not documented enough, let's see how the related issue resolves. I've checked the source, there's nothing wrong in built-in doctrine channel, it's type-agnostic against recpientId. |
…integration with other identifier types
…integration with other identifier types (#31)
May be it's even better if messenger-bundle doesn't provide Entity at all but requires it's user to create such Notification entity (of course with known interface) by himself and configure the bundle providing the class name then? |
Yes, it is. But currenly I've not enough time to prepare the bundle for this. (I'm already thinking about the next major, with more abstraction everywhere) |
In my project, I defined user ids as uuid. When I use the built-in 'doctrine' channel, I get the following error:
The text was updated successfully, but these errors were encountered: