Marco Pivetta
d49c907934
a PersistentCollection
should only allow another collection as a wrapped collection
2015-04-03 15:26:38 +01:00
Marco Pivetta
1993aecd4c
Reverting BC break: PersistentConnection#__construct()
now accepts null|array|Collection
again
2015-04-02 23:45:46 +01:00
Marco Pivetta
3b0fb6b4b8
Merge pull request #1274 from doctrine/persistent-collection-as-lazy-collection
...
PersistentCollection now extends AbstractLazyCollection.
2015-03-17 23:32:17 +00:00
Jeroen Thora
a409e7591d
Changed some wrong usage of the @internal phpdoc
2015-03-15 16:53:34 +01:00
Guilherme Blanco
19f18fa069
PersistentCollection now extends AbstractLazyCollection.
2015-03-01 00:30:21 -05:00
Oliver Tischlinger
f8072dd8e0
Fixed typo
2015-01-17 08:20:24 +01:00
Oliver Tischlinger
b5ba84f667
matching should not change critera
...
The matching should behave like in ArrayCollection, where it is not changed.
The criteria should be cloned so that it could be used for more than one matching operation.
2015-01-17 08:20:24 +01:00
Marco Pivetta
6fc0d84b7a
DDC-3427 - s/EntityManager/EntityManagerInterface in type-hints
2015-01-16 14:21:30 +01:00
Guilherme Blanco
25b7c64dc6
Implemented support for extra lazy get for both owning and inverse side on many to many associations.
2015-01-13 17:50:20 +00:00
Guilherme Blanco
d30e3ab43c
Added count cache when lazy collection is not yet initialized. Some cosmetic changes (primarily, there's no ELSE).
2014-05-16 04:22:11 +00:00
Michaël Gallego
11de4c2e72
Only create lazy collection for EXTRA_LAZY
2014-05-15 18:22:57 +02:00
Michaël Gallego
50832fd3bc
Add tests for PersistentCollection
2014-05-15 18:22:57 +02:00
Michaël Gallego
ac15b184b6
Fix tests for inheritance support
2014-05-15 18:22:56 +02:00
Michaël Gallego
0fa7b45a0e
Also add efficient count for Persistent collection
2014-05-15 18:22:56 +02:00
Michaël Gallego
0d5de64c0f
Fix CS
2014-02-18 10:26:25 +01:00
Michaël Gallego
c69b7562ab
Remove useless exception
2014-02-18 10:26:25 +01:00
Michaël Gallego
9385a600cf
Fix wrong logic
2014-02-18 10:26:24 +01:00
Michaël Gallego
160b07d1e3
Rebase to master
2014-02-18 10:26:24 +01:00
Benjamin Eberlei
50ba19d91b
Merge pull request #937 from goetas/contains-key
...
Extra-lazy for containsKey on collections
2014-02-08 16:28:44 +01:00
Benjamin Morel
496f9a0176
Avoid PersistentCollection::isEmpty() to fully load the collection on extra lazy fetch.
2014-02-08 13:49:48 +00:00
Asmir Mustafic
557686aa0a
Entra-lazy for containsKey on collections
2014-02-06 12:27:12 +01:00
Austin Morris
1c8ae50557
do not initialize coll on add()
2013-07-22 18:54:02 -04:00
Austin Morris
6bae2eac29
Initialize coll when using Collection methods inside PersistentCollection
2013-07-22 14:42:03 -04:00
Sander Marechal
06ed21e883
Remove extra-lazy-get for ManyToMany relation
2013-06-27 14:19:39 +02:00
Sander Marechal
2879162015
No need to lookup metadata
2013-06-20 14:00:58 +02:00
Sander Marechal
3b92cfac5a
Use find() if the indexBy field is the identifier
2013-06-20 13:45:38 +02:00
Sander Marechal
53c9ffda30
Get rid of variable
2013-06-20 10:20:16 +02:00
Sander Marechal
523697d0b6
[DDC-1398] Extra-lazy get for indexed associations
...
If an association is EXTRA_LAZY and has an indexBy, then
you can call get() without loading the entire collection.
2013-06-20 09:29:56 +02:00
Benjamin Eberlei
6d5afb18bc
[DDC-2430] Prevent Criteria queries using the ID of an assocation on PersistentCollections, as the in-memory ArrayCollection does not work with this kind of query. Attention this is a BC-BREAK, that is necessary to fix potentially very hard to debug bugs. Therefore it is not merged back into 2.3
2013-05-09 13:24:36 +02:00
Benjamin Eberlei
eca468b9d1
[DDC-2340] Fix bug with dirty collection matching + ordering.
2013-03-12 22:49:30 +01:00
Pascal Borreli
a2cd0f5804
Fixed typos
2013-03-11 00:08:58 +00:00
Marco Pivetta
8272ffd23f
Proxy generation as of doctrine/common#168 - DCOM-96
2013-02-14 09:57:12 +01:00
Benjamin Morel
774bb3fec4
Fixed missed documentation issues in Doctrine\ORM
2012-12-14 20:12:56 +00:00
Benjamin Morel
dacdd6cd89
Documentation (docblock) fixes.
2012-12-01 16:28:06 +00:00
Jan Kramer
5b3f54429a
[DDC-2074] Fixed bug regarding clearing PC's without owner
...
When calling clear on a PC that has no owner (e.g. because it was
cloned), it can't be deleted as there is no metadata available.
In these cases, it shouldn't be scheduled for deletion.
2012-11-25 19:27:39 +01:00
Stefano Rodriguez
bb8dd6cb11
Fixes PersistentCollection::matching() when collection is not initialized and there are NEW entities in the collection
2012-09-07 10:46:34 +02:00
Benjamin Eberlei
104a76a6b1
Update EntityRepository and PersistentCollection to new Criteria#expr() method instead of having to implement themselves.
2012-08-01 21:37:22 +02:00
Marco Pivetta
aa0cb0b6d7
DDC-1939 - Removing references to non-existing AssociationMapping class
2012-07-24 11:37:57 +02:00
Benjamin Eberlei
b2385e0afa
[DDC-1637] Implementation of Criteria Collections API for
...
PersistentCollection (OneToMany only) and EntityRepository.
2012-07-09 09:59:48 +02:00
Karsten Dambekalns
bcddc47356
[DDC-1835] Fix cloning persistent collections.
2012-05-27 10:17:12 +02:00
Benjamin Eberlei
70458b2f48
LGPL => MIT
2012-05-26 14:37:00 +02:00
Tim Nagel
6cbdf53975
Fixed DDC1778
2012-04-16 13:03:19 +10:00
Guilherme Blanco
a16ca32981
Coding style fixes.
2012-03-15 01:15:47 -04:00
Benjamin Eberlei
68436fee75
[DDC-1654] Add support for orphanRemoval on ManyToMany associations. This only makes sense when ManyToMany is used as uni-directional OneToMany association with join table. The join column has a unique constraint on it to enforce this on the DB level, but we dont validate that this actually happens. Foreign Key constraints help prevent issues and notify developers early if they use it wrong.
2012-02-20 10:33:16 +01:00
Benjamin Eberlei
9fc1d85e8d
[DDC-1643] Fix bugs when cloning PersistentCollection and re-using it.
2012-02-18 00:42:21 +01:00
Andrew Mackrodt
ef12a09ae0
Added remaining absolute namespace paths to phpdoc annotations - issue DDC-1025.
2011-12-11 21:56:27 +00:00
Andrew Mackrodt
2fdb55a878
Added absolute namespace paths to phpdoc annotations - issue DDC-1025.
2011-12-11 21:56:26 +00:00
Guilherme Blanco
5b73f1bd82
Improved code readability. Improved performance.
2011-11-30 09:57:54 -05:00
Guilherme Blanco
356f5874bf
Added support to removeElement remove items without initializing the PersistentCollection.
2011-11-29 11:29:17 -05:00
Benjamin Eberlei
ceadc95439
DDC-1496 - Fix bug with OneToMany collections having orphanRemoval=true and Collection#clear() being called.
2011-11-18 15:44:06 +01:00