DDC-3746: lack of flexibility in persisters #4595

Open
opened 2026-01-22 14:45:33 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (May 25, 2015).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user KonstantinKuklin:

I tried to implement driver for HandlerSocket protocol, which is mysql nosql plugin.

BasicEntityPersister is a problem - it fully depends(and others and more) on SQL.
I can`t say to Doctrine, how the data must be fetched from my own Driver.
I think it is a logical mistake, such logic(creating query to DB) must be inside a db driver bridge.
I found two solution:

  1. Get persisters configurable from entity manager config
  2. Try to find persisters inside the DBAL driver

What do u think about it?

Thanks, Konstantin.

Originally created by @doctrinebot on GitHub (May 25, 2015). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user KonstantinKuklin: I tried to implement driver for [HandlerSocket protocol](https://github.com/DeNA/HandlerSocket-Plugin-for-MySQL/blob/master/docs-en/protocol.en.txt), which is mysql nosql plugin. BasicEntityPersister is a problem - it fully [depends](https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php#L340)(and [others](https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php#L1081) and more) on SQL. I can`t say to Doctrine, how the data must be fetched from my own Driver. I think it is a logical mistake, such logic(creating query to DB) must be inside a db driver bridge. I found two solution: 1) Get persisters configurable from entity manager config 2) Try to find persisters inside the DBAL driver What do u think about it? Thanks, Konstantin.
admin added the Improvement label 2026-01-22 14:45:33 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4595