Sync with collections possible ? #5097

Open
opened 2026-01-22 14:58:11 +01:00 by admin · 1 comment
Owner

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

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
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5097