DDC-3793: Unit Of Work - Proxy injected collections 'PersistentCollections' #4651

Closed
opened 2026-01-22 14:46:45 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Jun 24, 2015).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user leonelvsc:

Hi all , i was looking to extend ArrayCollection i did it, but i notice something very very unusual, when an entity is loaded from the DB the unit of work most precisely on the method 'createEntity' it injects PersistentCollection object in the collections of all the entities, why you do that ?

Is there any way to inject my own subclass of PersistentCollection to the proxy objects ? Of course i know that i have to also extend PersistentCollection and create a CustomPersistentCollection

Sry for my english

Originally created by @doctrinebot on GitHub (Jun 24, 2015). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user leonelvsc: Hi all , i was looking to extend ArrayCollection i did it, but i notice something very very unusual, when an entity is loaded from the DB the unit of work most precisely on the method 'createEntity' it injects PersistentCollection object in the collections of all the entities, why you do that ? Is there any way to inject my own subclass of PersistentCollection to the proxy objects ? Of course i know that i have to also extend PersistentCollection and create a CustomPersistentCollection Sry for my english
admin added the Improvement label 2026-01-22 14:46:45 +01:00
admin closed this issue 2026-01-22 14:46:45 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jun 24, 2015):

@doctrinebot commented on GitHub (Jun 24, 2015): - duplicates [DDC-391: Allow to specifiy custom Entity and Collection Persister classes](http://www.doctrine-project.org/jira/browse/DDC-391) - duplicates [DDC-80: Allow custom collections](http://www.doctrine-project.org/jira/browse/DDC-80)
Author
Owner

@doctrinebot commented on GitHub (Jun 24, 2015):

Comment created by @ocramius:

Custom persistent collections are not yet supported.

See DDC-80 and DDC-391

@doctrinebot commented on GitHub (Jun 24, 2015): Comment created by @ocramius: Custom persistent collections are not yet supported. See [DDC-80](http://www.doctrine-project.org/jira/browse/DDC-80) and [DDC-391](http://www.doctrine-project.org/jira/browse/DDC-391)
Author
Owner

@doctrinebot commented on GitHub (Jun 24, 2015):

Issue was closed with resolution "Duplicate"

@doctrinebot commented on GitHub (Jun 24, 2015): Issue was closed with resolution "Duplicate"
Author
Owner

@doctrinebot commented on GitHub (Jun 24, 2015):

Comment created by leonelvsc:

Thx for answering so quickly , well i just hope in some future version you add this feature eventually

@doctrinebot commented on GitHub (Jun 24, 2015): Comment created by leonelvsc: Thx for answering so quickly , well i just hope in some future version you add this feature eventually
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4651