Marco Pivetta
8579baf28c
#1130 DDC-3300 - minor refactoring (else
removal, spacing)
2015-01-22 09:44:39 +01:00
Marco Pivetta
786c34faa5
#1130 DDC-3300 - refactoring auto-remapping of discriminator value into a private method
2015-01-22 09:44:38 +01:00
Marco Pivetta
c589b5d013
#1130 DDC-3300 - re-mapping discriminator column at runtime (based on modified class metadata)
2015-01-22 09:44:38 +01:00
mmoreram
93b6eeca54
Full resolveTargetEntities as constructor argument
2015-01-22 09:44:38 +01:00
mmoreram
fa45c0834d
Removed unused construct param
2015-01-22 09:44:38 +01:00
mmoreram
2a6c844953
Using constructor to define environment
2015-01-22 09:44:38 +01:00
mmoreram
7a73d27600
Added resolve entities support in discrim. map
2015-01-22 09:44:38 +01:00
Lukáš Lukáč
5e6ec8ebf3
Incorrect @throws doc. in getSingleScalarResult
2015-01-20 17:21:43 +01:00
Guilherme Blanco
2418f8f5e6
Removed todo by implementing it.
2015-01-18 22:21:18 -05:00
Anderson Müller
d48093886d
Fix error undefined index "targetEntity"
2015-01-18 15:54:43 +01:00
Marco Pivetta
c7f5ee8e9e
#1228 DDC-3490 - Remove unused method
2015-01-18 01:05:53 +01:00
Marco Pivetta
b1d7a057fd
#1228 DDC-3490 - avoid catching unknown exceptions, remove unused method call
2015-01-18 01:05:36 +01:00
Marco Pivetta
d0c0f43c79
#1228 DDC-3490 - preventing invalid association values from being persisted
2015-01-18 00:53:57 +01:00
Marco Pivetta
71a6a88de8
#1228 DDC-3490 -better/more complete exception message for invalid populated associations
2015-01-18 00:53:34 +01:00
flip111
83de071c00
Update ORMInvalidArgumentException.php
...
remove added `value` to exception
2015-01-18 00:16:10 +01:00
flip111
d1a2655090
Update UnitOfWork.php
...
rename duplicate method
2015-01-18 00:16:10 +01:00
flip111
b5dd999f84
Update ORMInvalidArgumentException.php
...
rename duplicate method
2015-01-18 00:16:10 +01:00
flip111
059c33e69d
Update UnitOfWork.php
...
removed one `)` too many
2015-01-18 00:16:10 +01:00
flip111
1ae153d315
Update UnitOfWork.php
2015-01-18 00:16:10 +01:00
flip111
643ae78691
Update ORMInvalidArgumentException.php
...
Add unused parameters for `invalidAssociation`
2015-01-18 00:16:09 +01:00
flip111
04e4940607
Update ORMInvalidArgumentException.php
...
`@return self` trend break with `@return ORMInvalidArgumentException`
2015-01-18 00:16:09 +01:00
flip111
88e071d22d
moved exception constructors out of UoW
2015-01-18 00:16:09 +01:00
flip111
b120dafb70
Added new exception constructors
2015-01-18 00:16:09 +01:00
flip111
00a2c8e09c
improved error handling for invalid association values
...
Possibly to do:
1. Make custom Exception for line 713
2. Make custom Exception for line 817
3. Does the object check on line 816 slow down the code too much? Alternatively a try-catch could be put around line 1415 or higher up.
2015-01-18 00:16:09 +01:00
Marco Pivetta
025565005d
#1252 DDC-3496 - reverting interface BC break
2015-01-18 00:11:47 +01:00
Marco Pivetta
369a9934a5
#1252 DDC-3496 - moving stub naming strategy to tests directory
2015-01-18 00:07:54 +01:00
Jack Sleight
60523d1b62
Update docblock for joinColumnName to include className details
2015-01-17 23:57:52 +01:00
Jack Sleight
be9d92bb26
Example NamingStrategy for using class name in join column names.
2015-01-17 23:57:52 +01:00
Jack Sleight
82163a3301
Include className in calls to NamingStrategy joinColumnName method.
2015-01-17 23:57:52 +01:00
Marco Pivetta
b1474768fe
#954 DDC-2982 - Better type-safety in Doctrine\ORM\Cache\Region\DefaultMultiGetRegion
instantiation logic
2015-01-17 23:43:34 +01:00
Marco Pivetta
624b98544a
#954 DDC-2982 - DefaultCacheFactory
now supports generic Doctrine\Common\Cache\Cache
instances
2015-01-17 23:42:49 +01:00
Marco Pivetta
564624814b
#954 DDC-2982 - Evicting all cache entries is not supported with a generic cache adapter
2015-01-17 23:30:37 +01:00
Marco Pivetta
95c6cca336
#954 DDC-2982 - Minor CS fixes/IDE hints
2015-01-17 23:17:07 +01:00
Marco Pivetta
8ddcc4b270
#954 DDC-2982 - No need to check if a Region
is a MultiGetRegion
2015-01-17 23:11:14 +01:00
Marco Pivetta
3c5a794691
#954 DDC-2982 - Making cache Region
always a MultiGetRegion
(no need to segregate the interface here)
2015-01-17 23:10:49 +01:00
Asmir Mustafic
3f64f3252b
Changed some tests to be compatible with the new implementation of
...
multiget region
2015-01-17 22:27:59 +01:00
Asmir Mustafic
e73bd9e9bb
New buildCacheEntry way bo build a entry for a cached collection
2015-01-17 22:27:59 +01:00
Asmir Mustafic
1b4eee6d0d
Fixed strange test case with CmsUser and second-level cache
2015-01-17 22:27:59 +01:00
Asmir Mustafic
5ec2014051
MultiGetCollectionHydrator depends knows the multi-get region
2015-01-17 22:27:59 +01:00
Asmir Mustafic
1bfa68d94f
Removed dependency with Region interface
2015-01-17 22:27:59 +01:00
Asmir Mustafic
74e93e4cad
Added multi-get support for second level cached collections
2015-01-17 22:27:58 +01:00
Bill Schaller
3fd3da3d46
Fixed removal of ASC and DESC keywords from orderby items that will be included in select list
2015-01-17 22:12:26 +01:00
Bill Schaller
8350de781f
Doc fix
2015-01-17 22:12:26 +01:00
Bill Schaller
dfc0910756
Fixed how order by items are included in the select list of the select distinct wrapper statement
2015-01-17 22:12:26 +01:00
Bill Schaller
ed800e4b86
Added function to LimitSubqueryOutputWalker which takes an order by clause and rebuilds it to work in the scope of the wrapping query
2015-01-17 22:12:25 +01:00
Bill Schaller
a4ebc08c4f
* Modified tests in LimitSubqueryOutputWalkerTest.php to not have duplicated order by clauses
...
* Modified LimitSubqueryOutputWalker to not duplicate order by clauses
2015-01-17 22:12:25 +01:00
Marco Pivetta
fea0425a4f
#1262 DDC-3513 - RunDqlCommand
should write to the output object rather than to the output buffer
2015-01-17 21:31:00 +01:00
Bob van de Vijver
3c2ed7d8a8
Fixes the broken DQL command
...
Now it can again output more than only the created SQL query.
See cdb62a70cd (comments)
2015-01-17 13:21:30 +01:00
Kiel Goodman
0c5ea34fd4
[DDC-3436] Fix changes requested 2/2
2015-01-17 08:33:23 +01:00
Kiel Goodman
dc98da585d
[DDC-3436] Fix changes requested 1/2
2015-01-17 08:33:23 +01:00
Kiel Goodman
918d2910d9
[DDC-3108] Fix regression introduced in DDC-2764 where join aliases were no longer accessible in Criteria expressions
2015-01-17 08:33:23 +01: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
f13b085582
Using PersisterHelper
instead of the unreliable ClassMetadataInfo#getTypeOfColumn()
2015-01-17 08:14:04 +01:00
Marco Pivetta
f1170c84a4
#1086 - Passing type information when building meta-mappings for JTI and STI inheritances
2015-01-17 08:09:55 +01:00
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
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
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
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
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
Mathieu De Zutter
ec35d4886c
Don't load detached proxies when merging them.
...
Ticket DDC-1392 fixed an issue where uninitialized proxies could not be merged
because the merge routine couldn't get the identifier from them. The soution
was to initialize the proxy.
Ticket DDC-1734 fixed the merging of *unserialized* uninitialized proxies by
resetting their internals, so these proxies were able to initialize, as required
by the fix for DDC-1392.
Somehow, in the meanwhile, the fix for DDC-1392 is not needed anymore:
reverting the patch will not break the associated test (but it does break the
test for DDC-1734). This means it is not needed anymore to initialize the proxy
when merging.
Uninitialized proxies that get merged should not be loaded at all. Since they
are not initialized, the entity data for sure hasn't changed, so it can be
safely ignored. Actually, the only thing the data is needed for while merging,
is to copy it into the managed entity, but that one is already supposed to be
up to date. By not initializing the proxy, a potential database roundtrip is
saved, and the fix for DDC-1734 is not needed anymore.
Besides optimizing the merge, this patch also solves an issue with merging.
Currently, when a detached uninitialized proxy is merged while there is already a
corresponding managed entity (proxy or not), the ORM returns a blank entity
instead of returning the already managed entity. This patch makes sure that
already existing managed entities are re-used.
2015-01-16 20:54:15 +01:00
Marco Pivetta
935a79e15f
#1133 DDC-3305 - minor cs fix (spacing)
2015-01-16 19:46:04 +01:00
Marco Pivetta
7e4dab17ec
#1133 DDC-3305 - test case with embeddable without referenced embeddable class
2015-01-16 19:45:16 +01:00
Javier Spagnoletti
705a7d2cc2
[Embeddables] Improved exception message when embeddables is missing 'class' attribute.
2015-01-16 19:18:46 +01:00
Marco Pivetta
f799986be1
Reverting BC break in AbstractIdGenerator signature
2015-01-16 18:52:58 +01:00
Marco Pivetta
339bd23ac8
#1209 DDC-3427 - removing leftover EntityManager
hints (using interface instead)
2015-01-16 14:44:31 +01:00
Marco Pivetta
6fc0d84b7a
DDC-3427 - s/EntityManager/EntityManagerInterface in type-hints
2015-01-16 14:21:30 +01:00
Guilherme Blanco
f90475772d
Classify persisters into more granular namespaces.
2015-01-16 00:10:25 +01:00
Marco Pivetta
0f2c117f3e
Cloning and configuring the cache adapter for each newly created cache region (fixes cache namespacing)
2015-01-15 21:17:49 +01:00
Marco Pivetta
514fd008b9
Cache regions will not modify the injected cache instance settings
2015-01-15 21:01:35 +01:00
Marco Pivetta
5bd921139e
Merge branch 'hotfix/#1250-DDC-3493-fix-class-pseudo-constant-parsing-in-entitygenerator'
2015-01-15 04:16:44 +01:00
Guilherme Blanco
a1d77bdc65
Renamed coll to collection and some small updates to tests.
2015-01-15 03:14:48 +00:00
Andrea Sprega
243210e896
DDC-3493 - fixed EntityGenerator parsing for php 5.5 "::class" syntax
2015-01-15 04:13:09 +01:00
Marco Pivetta
55a75bfb1b
Merge pull request #1249 from doctrine/extra-lazy-get-m2m
...
Support for extra lazy get for both owning and inverse side on many to many associations.
2015-01-15 03:36:35 +01:00
Steve Müller
d343617f13
Merge pull request #1255 from Ocramius/cleanup/php-5.3-support-end
...
Cleanup: PHP 5.3 support end
2015-01-15 01:29:00 +01:00
Marco Pivetta
e2acd74cb4
#1072 DDC-3191 - minor performance optimization
2015-01-15 00:37:41 +01:00
Alexander Kurilo
58cd520e32
Fix attempt of traversing bool in FileLockRegion
2015-01-14 23:51:41 +01:00
Marco Pivetta
541e7bdf72
Refactoring test method: no need to test for PHP version
2015-01-14 20:13:46 +01:00
Marco Pivetta
8e28cb9119
Removing useless $self
use
statements, as PHP 5.4 supports $this
in closures
2015-01-14 20:12:27 +01:00
Marco Pivetta
3ba9689448
#881 DDC-2825 - aligning assignments
2015-01-14 18:19:22 +01:00
Marco Pivetta
f0102a69f9
#881 DDC-2825 - refactoring mapping driver to use ClassMetadata#setPrimaryTable()
instead of duplicating explode()
logic
2015-01-14 18:12:12 +01:00
Marco Pivetta
eefa3b2e53
#881 DDC-2825 - correcting YAML driver implementation (wasn't using extracted schema)
2015-01-14 18:06:29 +01:00
Marco Pivetta
51bf82b7e7
#881 DDC-2825 - correcting PHP mapping behavior when using implicit schema in table name
2015-01-14 17:54:00 +01:00
Marco Pivetta
3820fa57d3
#881 DDC-2825 - XML mappings should handle explicitly defined schema name
2015-01-14 17:33:17 +01:00
Michaël Perrin
54b3c0548d
Fix persistence exception on a table with a schema on a platform without schema support
2015-01-14 15:48:49 +01:00
Marco Pivetta
ba5378fecc
#385 #1181 DDC-3385 - fixing Events
docblocks as per @deeky666's review
2015-01-13 21:15:34 +01:00
Marco Pivetta
ae8ab0812e
#385 #1181 DDC-3385 - fixing OnClassMetadataNotFoundEventArgs
docblocks as per @deeky666's review
2015-01-13 21:14:32 +01:00
Marco Pivetta
662b49608c
#385 #1181 DDC-3385 - aligning tests and implementation to new OnClassMetadataNotFoundEventArgs
API
2015-01-13 20:56:57 +01:00
Marco Pivetta
762e798d22
#385 #1181 DDC-3385 - extending OnClassMetadataNotFoundEventArgs
from ManagerEventArgs
instead of generic EventArgs
2015-01-13 20:56:21 +01:00
Marco Pivetta
6021e3a1b8
#385 #1181 DDC-3385 - Updating docblock of OnClassMetadataNotFoundEventArgs
2015-01-13 20:49:08 +01:00
Marco Pivetta
eaa9187dd8
#385 #1181 DDC-3385 - minor CS fix (spacing)
2015-01-13 20:33:30 +01:00
Marco Pivetta
8ea394e778
#385 #1181 DDC-3385 - removing @todo
that was discussed/cleared
2015-01-13 20:33:10 +01:00
Marco Pivetta
a710706c81
#385 #1181 DDC-3385 - optimized imports, removing duplicate imports (caused by rebase conflicts)
2015-01-13 20:00:40 +01:00
Marco Pivetta
e4cbdb57ad
Enabling fallback logic in metadata loading
2015-01-13 19:50:55 +01:00
Marco Pivetta
d91b0b4938
Minor CS fixes in the ResolveTargetEntityListener
2015-01-13 19:50:17 +01:00
Marco Pivetta
f5eb20b63d
OnClassMetadataNotFoundEventArgs
should support setting the actually resolved ClassMetadata
as a mutable event result vector
2015-01-13 19:50:17 +01:00
Bart van den Burg
3be43a1def
Rebased and renamed PreLoadClassMetadata to OnClassMetadataNotFound
2015-01-13 19:49:57 +01:00
Bart van den Burg
437f812718
Added new event to allow actions to be done before trying to load class metadata
2015-01-13 19:49:57 +01:00
Bart van den Burg
51528fbdea
set metadata for interface to be able to fetch entites by interface name
2015-01-13 19:49:57 +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
Marco Pivetta
9c3cb57931
Merge branch 'optimize-persisters'
...
Close #1246
2015-01-13 15:05:45 +01:00
Marco Pivetta
35dd7f8e2b
#1246 DDC-3487 - docblock args fixes
2015-01-13 15:03:04 +01:00
Marco Pivetta
278b8bfa08
#1246 DDC-3487 - minor alignment fixes
2015-01-13 14:58:56 +01:00
Marco Pivetta
7f71cbc8c7
#1246 DDC-3487 - removed unused assignment, minor alignment fixes
2015-01-13 14:54:00 +01:00
Marco Pivetta
97d1d5343e
#1246 DDC-3487 - removed unused assignment, making $association
variable overwrite more obvious
2015-01-13 14:46:34 +01:00
Marco Pivetta
c4366124c7
#1246 DDC-3487 - removed unused assignment, direct return instead
2015-01-13 14:45:13 +01:00
Marco Pivetta
17a865ec7f
#1246 DDC-3487 - correcting docblock (static introspection fix)
2015-01-13 14:39:05 +01:00
Marco Pivetta
b99f4461be
#1246 DDC-3487 - re-aligning SQL string concatenation for readability, fixed docblock return value hint
2015-01-13 14:37:32 +01:00
Marco Pivetta
5942b6c302
#1246 DDC-3487 - re-aligning SQL string concatenation for readability
2015-01-13 14:31:22 +01:00
Marco Pivetta
77234d6aec
#1246 DDC-3487 - removing unused assignment
2015-01-13 14:30:51 +01:00
Marco Pivetta
a8dcc2acf3
#1246 DDC-3487 - removing possible undefined value path for $newValId
for clarity
2015-01-13 14:05:27 +01:00
Guilherme Blanco
de4723883f
Merge pull request #1171 from jaimz22/master
...
Improvements for complex select statements when using new object expression
2015-01-12 22:48:56 -05:00
Guilherme Blanco
bc268da8c2
Small optimization.
2015-01-13 03:30:07 +00:00
Guilherme Blanco
678f47f494
More deprecated code removal.
2015-01-13 02:52:31 +00:00
Guilherme Blanco
965cdbdbbb
Optimized column to field resolutions.
2015-01-13 02:18:49 +00:00
Guilherme Blanco
96955d6e79
Some small improvements to persisters.
2015-01-13 02:05:33 +00:00
Marco Pivetta
1bfa7ea754
#1240 DDC-3479 - Basic coverage for EntityNotFoundException
2015-01-13 02:55:51 +01:00
Marco Pivetta
fc72b41953
#1240 DDC-3479 - Using a static proxy constructor rather than the default constructor
2015-01-13 02:51:47 +01:00
Marco Pivetta
66c556fbfd
#1240 DDC-3479 - Fixing minor CS issues (naming, alignment)
2015-01-13 02:48:57 +01:00
Lars Strojny
8e4092750d
Include IDs in the exception message to ease debugging
2015-01-13 02:41:05 +01:00
Carnage
00b6f62287
Fixed issue
2015-01-13 02:36:58 +01:00
Vladislav Veselinov
79bf84e1ad
revert typehint change
2015-01-13 02:05:49 +01:00
Vladislav Veselinov
9cb17d2915
EntityManagerInterface instead of EntityManager
...
Make connection available in filters
Add test for the changes
2015-01-13 02:05:49 +01:00
Marco Pivetta
f571a9ef88
#470 DDC-54 DDC-3005 - query iteration must cause eager hydrationComplete
logic to be fired
2015-01-13 01:42:38 +01:00
Marco Pivetta
a884452ffc
#470 DDC-54 DDC-3005 - removing unused PostLoadEventDispatcher
2015-01-13 01:16:46 +01:00
Marco Pivetta
b1144e74ea
#470 DDC-54 DDC-3005 - reverting hydrator changes, as patch DDC-3005 already deals with the issue
2015-01-13 01:09:23 +01:00
Lukasz Cybula
aa4796cd0d
Moved postLoad dispatching from UnitOfWork to object hydrators
2015-01-13 01:03:48 +01:00
Marco Pivetta
d09280a1dc
#1001 DDC-3005 - HydrationCompleteHandler
cs fixes (line-wrap)
2015-01-13 00:52:12 +01:00
Marco Pivetta
45221b1951
#1001 DDC-3005 - removed HydrationCompleteHandler#invokeAllDeferredPostLoadEvents()
(useless method call indirection)
2015-01-13 00:51:44 +01:00
Marco Pivetta
c9ccd91421
#1001 DDC-3005 - optimized HydrationCompleteHandler
imports
2015-01-13 00:50:19 +01:00
Marco Pivetta
730c2a81f7
#1001 DDC-3005 - HydrationCompleteHandler
static introspection cleanups, as well as memory and performance improvements
2015-01-13 00:50:05 +01:00
Marco Pivetta
7b81cfb6ea
#1001 DDC-3005 - Minor CS fixes in HydrationCompleteHandler
2015-01-13 00:33:15 +01:00
Marco Pivetta
89530f88f7
#1001 DDC-3005 - Removing dead assignment HydrationCompleteHandler#__construct()
2015-01-13 00:32:10 +01:00
Marco Pivetta
516d04c391
#1001 DDC-3005 - Removing useless dependency from the HydrationCompleteHandler
to the UnitOfWork
2015-01-13 00:31:32 +01:00
Marco Pivetta
af93539576
#1001 DDC-3005 - HydrationCompleteHandler
should accept EntityManagerInterface
instances
2015-01-13 00:06:07 +01:00
Marco Pivetta
22e12e0043
#1001 DDC-3005 - coverage annotations, minor CS fixes
2015-01-12 23:50:16 +01:00
Guilherme Blanco
dd883f2136
Moved delete() and update() to proper locations.
2015-01-12 22:04:04 +00:00
Strate
0c8a31bf2b
DDC-3005. Revert empty line. Removed @since annotation
2015-01-12 22:34:24 +01:00
Strate
35ea399d33
DDC-3005 Defer invoking of postLoad event to the end of hydration cycle.
...
1. Refactor handling of hydration complete: delegate this task to special object
2. Write test case for situation, when inside postLoad listener other entity is loading.
3. Make test, written on second step, be able to pass :)
2015-01-12 22:34:24 +01:00
Strate
f3b31c2807
DDC-3005 Defer invoking of postLoad event to the end of hydration cycle.
...
This feature makes guarantee, that postLoad event fires after all associations are populated
2015-01-12 22:33:40 +01:00
Guilherme Blanco
932a56f26f
Internalize UnitOfWork in CollectionPersisters. Updated related code.
2015-01-12 19:52:27 +00:00
Guilherme Blanco
c5f1b99721
Fixed wrong return.
2015-01-12 18:18:15 +00:00
Guilherme Blanco
73afcec22a
Implemented support for one to many extra lazy with joined inheritance.
2015-01-12 18:15:13 +00:00
Benjamin Morel
fbcf18cf33
Changed $this return type to static in AbstractQuery
...
This allows IDEs and static code analysis tools to properly understand the return type when chaining methods, for example when using the QueryBuilder.
2015-01-11 16:48:09 +00:00
Marco Pivetta
be91cc9bb3
Merge pull request #1239 from deeky666/fix-index-duplication
...
Fix index duplication for unique association join columns
2015-01-09 23:07:50 +01:00
Marco Pivetta
664b6bf4c5
Merge pull request #1227 from c960657/production-settings-query-cache
...
Ensure query cache is not ArrayCache in production
2015-01-09 16:58:38 +01:00
Steve Müller
d1e5034659
fix index duplication for unique association join columns
2015-01-08 15:39:41 +01:00
Andrey Knupp Vital
08e8af9372
Type-hinting SimpleXMLElement
(_getCascadeMappings)
2015-01-08 09:28:15 -02:00
Andrey Knupp Vital
b90943c56b
Minor improvements
2015-01-08 09:04:37 -02:00
Andrey Knupp Vital
4935da138d
Respecting use-column-prefix
instead of relying on false/0 of column-prefix
2015-01-08 00:10:24 -02:00
Andrey Knupp Vital
8bbc492978
Removing weird strict comparison on different types
2015-01-07 17:24:44 -02:00
Andrey Knupp Vital
82cda1ecb0
Prevents prefixing a column when false
on column-prefix
(XML)
2015-01-07 17:22:48 -02:00
Guilherme Blanco
ef65270387
Merge pull request #1230 from johannes/master
...
Allow dumping SQL query when passing DQL on cli
2015-01-06 21:39:11 -05:00
Marco Pivetta
6448627bc9
Merge pull request #1233 from SofHad/refactoring-duplicate-code
...
[Minor] Refactoring to avoid duplicate code
2015-01-04 22:59:05 +01:00
SofHad
eb22db0dcf
remove the unnecessary check
2015-01-04 21:01:32 +01:00
Martin Prebio
8f15c5e905
Consistent return type confirming with interface
2014-12-31 01:28:05 +01:00
Sofiane HADDAG
8d91f7de60
Rename handleCache to updateCache
2014-12-30 14:49:12 +01:00
shaddag
ccb09ad0ac
Rename the private method
2014-12-30 14:10:56 +01:00
shaddag
12b5a0cdd7
Extracted ony the common logic
2014-12-30 14:06:48 +01:00
shaddag
50ef1369c3
[Minor] Refactoring to avoid duplicate code
2014-12-30 10:03:49 +01:00
Johannes Schlüter
cdb62a70cd
Allow dumping SQL query when passing DQL on cli
2014-12-24 14:15:23 +01:00
Christian Schmidt
61c72e4aa7
Ensure query cache is not ArrayCache in production
2014-12-19 20:18:45 +01:00
James Murray
d9cbe1a8b7
removed unnecessary fieldIdentificationVariable property check
2014-12-19 14:10:47 -05:00
James Murray
2f76571d3a
Added a fix for ObjectHydrator when the same number of scalar results and new object results exist
...
Adding additional tests for mixed New object and scalar query
2014-12-19 14:06:03 -05:00
Guido Contreras Woda
82847e1851
Added more docblock
2014-12-16 22:37:50 -03:00
Guido Contreras Woda
8fd28fcd8f
Added embedded and embeddables to ClassMetadataBuilder
2014-12-16 22:30:28 -03:00
Gareth Evans
2fac6272a1
Checks key exists rather than isset
...
If the default value is set to `null`, `isset` will return `false` even though the key is actually there for a reason.
2014-12-08 01:31:14 +01:00
Marco Pivetta
cf1b16a505
#1213 - DDC-3437 - renaming variables/alignment/clarifications in docblocks
2014-12-08 01:22:20 +01:00
Austin Morris
d48546d2dd
fix instantiation of embedded object in ReflectionEmbeddedProperty
2014-12-08 01:06:11 +01:00
Fedik
c1eff7045a
XML export driver: fix export options
2014-12-07 13:05:19 +02:00
Guilherme Blanco
0059e01936
Merge pull request #1208 from Ocramius/hotfix/DDC-3427-class-metadata-factory-should-accept-entitymanagerinterface-instances
...
DDC-3427 - class metadata factory should accept `EntityManagerInterface` instances
2014-12-05 12:22:23 -05:00
Marco Pivetta
ac67a10d4c
DDC-3434 - adding note on why restoring 'HIDDEN' selected fields is relevant
2014-12-05 18:02:12 +01:00
Marco Pivetta
6169175a89
DDC-3434 - HIDDEN
modifier marked fields in ORDER BY
clause are always preserved when creating a paginator subquery
2014-12-05 17:11:57 +01:00
Guilherme Blanco
a6cf714f41
Merge pull request #1210 from Ocramius/hotfix/DDC-3336-undefined-property-with-paginator-and-scalar-expression-select
...
DDC-3336 - undefined property with paginator walker and scalar expression in ORDER BY clause
2014-12-05 10:42:55 -05:00
Marco Pivetta
e53e8bfe8e
DDC-3336 - applied hotfix: only PathExpression
instances have a $field
property
2014-12-05 14:56:47 +01:00