Orm: DDC-547: Consider allowing custom PersistentCollection implementations

Created on 27 Apr 2010  Â·  10Comments  Â·  Source: doctrine/orm

Jira issue originally created by user romanb:

We should consider allowing the configuration of custom PersistentCollection implementations on a per-association basis.
This could allow users to craft optimized (SQL) behavior for for some of their collections to improve performance without changing the domain model code.

For this, PersistentCollection needs to be designed for inheritance.

Can't Fix New Feature

All 10 comments

Comment created by romanb:

Rescheduled for 2.1. Might be 2.x.

Comment created by @beberlei:

Reschedule for 2.x

Comment created by Wilt:

Any progress on this new feature?

Comment created by @ocramius:

This can't be solved in the 2.x series because of the tight coupling between association UnitOfWork logic and the PersistentCollection API.

@ocramius can you give recommendation about how to make workaround of this limitation? Custom collections is really needed in domain logic.

There is no possible workaround right now.

On 5 Mar 2017 3:57 p.m., "Yanosh" notifications@github.com wrote:

@ocramius https://github.com/ocramius can you give recommendation about
how to make workaround of this limitation? Custom collections is really
needed in domain logic.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/doctrine/doctrine2/issues/5057#issuecomment-284233242,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJakJyx3QXHo3V8P9x-iKE7sRWFnWUGks5ris1MgaJpZM4MTb52
.

Any progress on this?

@hugochinchilla no, this is likely not going to be solved for 3.x either due to its complexity

Gonna close here as "won't fix".

While the feature is a "most wanted", having a placeholder isn't useful until someone comes up with an implementation plan that is viable and that can be attempted.

Please open a new issue if you have an approach that you think could work (considering lazy-loading and UnitOfWork semantics).

Was this page helpful?
0 / 5 - 0 ratings