Marco Pivetta
131a39bad4
#1178 - s/getValue/getIdentifierValues
2015-01-17 07:59:03 +01:00
Marco Pivetta
584839d38a
#1178 - moved private method to the bottom of the class
2015-01-17 07:59:03 +01:00
Marco Pivetta
edf054cd0c
#1178 - removing duplicate configuration of the rot13 DBAL type
2015-01-17 07:59:03 +01:00
Marco Pivetta
b32c779c37
#1178 - minor typo (method names)
2015-01-17 07:59:02 +01:00
Marco Pivetta
d47f724f16
#1178 - restoring correct getJoinTableRestrictionsWithKey
logic as per @jaspernbrouwer's previous implementation
2015-01-17 07:59:02 +01:00
Marco Pivetta
f88f5ce454
#1178 - fetching actual target entity when resolving column types of it
2015-01-17 07:59:02 +01:00
Marco Pivetta
a39b6869ca
#1178 - mapping between criteria parameters and types when fetching on one-to-many with additional criterions
2015-01-17 07:59:02 +01:00
Marco Pivetta
ce446a6f03
#1178 - correcting filtering when initializing a one-to-many collection that has composite complex (custom DBAL types) identifiers
2015-01-17 07:59:02 +01:00
Marco Pivetta
096bd90aed
#1178 - using the PersisterHelper
to extract type of associated meta-result columns
2015-01-17 07:59:02 +01:00
Marco Pivetta
e5c4e65764
#1178 - proxy identifiers should be correctly converted
2015-01-17 07:59:02 +01:00
Marco Pivetta
0743238b43
#1178 - minor code duplication removal
2015-01-17 07:59:01 +01:00
Marco Pivetta
4eaa7ea821
#1178 - correcting class from which the type of a column should be fetched (source class when relationToSourceKeyColumns
is used)
2015-01-17 07:59:01 +01:00
Marco Pivetta
6e2179aa8e
#1178 - handling custom types when filtering/removing by element in extra-lazy many-to-many associations
2015-01-17 07:59:01 +01:00
Marco Pivetta
5e49aeef6f
#1178 - handling custom types when filtering by key in extra-lazy many-to-many associations
2015-01-17 07:59:01 +01:00
Marco Pivetta
e39f08f6bd
#1178 - handling correct parameter binding when counting extra-lazy collections with custom-type referenced identifiers
2015-01-17 07:59:01 +01:00
Marco Pivetta
c82794bff7
#1178 - handling traversal of association mapping data in lazy-loading many-to-many requests on the inverse side
2015-01-17 07:59:01 +01:00
Marco Pivetta
1e606d1ed3
#1178 - adding note about ClassMetadataInfo#getTypeOfColumn()
being unreliable/dangerous
2015-01-17 07:59:01 +01:00
Marco Pivetta
41900dca76
#1178 - correctly handling initialization of collections referenced via custom DBAL types
2015-01-17 07:59:00 +01:00
Marco Pivetta
91bceca7ee
#1178 - correcting collection insert/update logic to correctly cast values for custom typed columns
2015-01-17 07:59:00 +01:00
Marco Pivetta
aaa6443954
#1178 - PersisterHelper::getTypeOfColumn()
should not fail silently, as that makes persister bugs impossible to spot
2015-01-17 07:59:00 +01:00
Marco Pivetta
a80532a538
#1178 - correcting association column type when dealing with multiple derived associations/identifier levels
...
Since the ClassMetadata can only know about internal state, any `joinColumn` association details on the
inverse side of an association need to be computed by fetching associated metadata.
2015-01-17 07:59:00 +01:00
Marco Pivetta
445798ed46
#1178 - reverting patch and keeping tests (rebase gone awry)
...
Also cleaning up `OrmFunctionalTestCase`
2015-01-17 07:59:00 +01:00
Jasper N. Brouwer
5c1d1931b7
Fixed typehints and use statements
2015-01-17 07:59:00 +01:00
Jasper N. Brouwer
fe21f18991
Fixed doc-blocks
2015-01-17 07:59:00 +01:00
Jasper N. Brouwer
a0b43d0a7f
Don't alias PersisterHelper to Helper
2015-01-17 07:58:59 +01:00
Jasper N. Brouwer
7b9c6a69bd
Add tests for extra lazy many-to-many associations
...
and fixed production code
2015-01-17 07:58:59 +01:00
Jasper N. Brouwer
ba3df8577b
Refined and added tests, fixed found issues
...
- Renamed id properties so they don't coexist between entities in a test
- Added tests for extra lazy one-to-many associations
- Fixed production code to make tests green
2015-01-17 07:58:59 +01:00
Jasper N. Brouwer
f7b14085f2
Abstracted infering binding types away in a helper
2015-01-17 07:58:59 +01:00
Jasper N. Brouwer
4f9f7eedf5
Removed DDC-3380 mentions in production code
2015-01-17 07:58:59 +01:00
Jasper N. Brouwer
f60f2a567a
Fixed associations using a value-conversion type for identifiers
2015-01-17 07:58:59 +01:00
Marco Pivetta
f6445d5a3e
Fixing build using a dedicated in-memory connection to stub out two real connections for DB-access checks
2015-01-17 07:58:35 +01:00
Marco Pivetta
074ec358ab
Merge branch 'hotfix/#1172-avoid-proxy-initialization-when-proxy-is-merged-into-uow'
...
Close #1172
2015-01-16 22:56:03 +01:00
Marco Pivetta
57ce6ccfcf
#1172 - fixed minor CS issues (spacing)
2015-01-16 22:54:30 +01:00
Marco Pivetta
45e733eb60
#1172 - adding @method
annotation to simplify static introspection
2015-01-16 22:50:52 +01:00
Marco Pivetta
42c9ff026e
#1172 - renaming test class for clarity
2015-01-16 22:47:00 +01:00
Marco Pivetta
937113e234
#1172 - simplified logic, re-using existing generic model
2015-01-16 22:46:31 +01:00
Marco Pivetta
cd3fc6e6ea
#1172 - adding required @group
annotations for newly introduced tests
2015-01-16 22:43:52 +01:00
Marco Pivetta
94724b7a56
#1172 - reverted: moving MergeUninitializedProxyTest
tests into EntityManagerTest
(invalid, as they are functional tests)
2015-01-16 22:43:03 +01:00
Marco Pivetta
3769cd1119
#1172 - adding required @group
annotations for newly introduced tests
2015-01-16 22:37:38 +01:00
Marco Pivetta
70840131ff
#1172 - moved MergeUninitializedProxyTest
tests into EntityManagerTest
2015-01-16 22:36:30 +01:00
Marco Pivetta
438feccd55
#1172 - removing redundant test logic
2015-01-16 22:25:41 +01:00
Marco Pivetta
de4e980389
#1172 - covering merging of unmanaged, un-initialized proxies bound to a different entity manager
2015-01-16 22:25:00 +01:00
Marco Pivetta
b7566dc65b
#1172 - correcting test: all connections should have a saved file instance
2015-01-16 22:20:58 +01:00
Marco Pivetta
d1e7960f99
#1172 - tests to verify that proxies keep distinct entity manager instances even across merging operations
2015-01-16 22:12:42 +01:00
Marco Pivetta
4ed0a6ce53
#1172 - removing redundant tests
2015-01-16 21:25:25 +01:00
Marco Pivetta
3df119f4fe
#1172 - when merging an initialized proxy, the managed proxy must be initialized before merging
2015-01-16 21:23:47 +01:00
Marco Pivetta
a18f258b4d
#1172 - covering merging of managed proxies
2015-01-16 21:15:39 +01:00
Marco Pivetta
0329ac5074
#1172 - covering also detached proxies - merging operations should not initialize either proxy
2015-01-16 21:14:13 +01:00
Marco Pivetta
dde09872df
#1172 - writing a more concise test case about merging detached proxies
2015-01-16 21:09:53 +01:00
Mathieu De Zutter
318b23097b
Don't load uninitialized proxies after merging.
...
Previous patch avoided initialization of proxies before merging, mainly to
fix a bug with merging. However, later on, doctrine tries again to load
the proxy. This is unnecessary and thus has been removed. This way, a
round trip to the database is saved.
2015-01-16 20:54:15 +01:00