mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Sync with collections possible ? #5097
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mikeSimonson on GitHub (Apr 13, 2016).
New Comparaison methods have been added to Collections. I am basically trying to look if I should revert those commit or if I can implement them in sql and mongo.
The change are new comparison type ( starts_with, ends_with and member_of).
In the BasicEntityPersister you can modify the sql that will be generated but for starts_with and ends_with, I need to prepend or append a % to the parameter passed.
I am trying to understand if that is at all possible in the current architecture with sql and mongo.
Thanks @beberlei
@beberlei commented on GitHub (Apr 27, 2016):
@mikeSimonson As you can see in BasicEntityPersister, it might be possibe because it delegates to a special SqlValueVisitor to convert the parameters into an array of params and types. This might be the place where you can modify them easily and without much additional overhead.