1
0
mirror of synced 2025-02-02 05:21:44 +03:00

4764 Commits

Author SHA1 Message Date
Ilyas Salikhov
b85d004440 Remove final keyword from Query classes 2015-06-14 13:16:01 +03:00
Fedik
2290d1ff9b fix EntityGenerator RegenerateEntityIfExists 2015-03-31 08:45:07 +01:00
Jeremy
33baa41e9f Properly generate default value from yml & xml mapping 2015-03-17 22:48:23 +00:00
nclavaud
bac6570af1 Update identityMap when entity gets managed again
http://www.doctrine-project.org/jira/browse/DDC-3619

When using SoftDeleteable doctrine extension, an entity can be scheduled
for deletion, then persisted before flushing. In such a case, the entity
was removed from the unit of work identity map and no reference was
hold. This could lead to spl_object_hash collisions, and prevent
another, new entity to be persisted later.

This fix makes sure the unit of work identity map holds a reference to
the entity after it has been soft-deleted.
2015-03-17 22:38:57 +00:00
Marco Pivetta
f5705d6d95 #1169 DDC-3343 - corrected persister logic - only uses the entity persister to perform deletes on the owning side 2015-02-05 00:52:54 +00:00
Marco Pivetta
a1bd3e8cc9 #1169 DDC-3343 - optimized imports 2015-02-05 00:25:20 +00:00
Marco Pivetta
2fa48c6e88 #1169 DDC-3343 - actually deleting associated elements when they are orphaned and EXTRA_LAZY is used 2015-02-05 00:25:06 +00:00
Marco Pivetta
4bed15b984 #1169 DDC-3343 - one-to-many persister should only interact with the data when orphanRemoval and EXTRA_LAZY are combined 2015-02-05 00:20:39 +00:00
Marco Pivetta
db06355b63 #1294 - fixing differences between 2.5 and 2.4 fixes (reverts DBAL dependency bump) 2015-02-04 23:46:15 +00:00
Ryan Weaver
2e9ffe831c Adding docblock 2015-02-04 23:37:11 +00:00
Ryan Weaver
9d7256aace Small code change thanks to the comments and adding a test 2015-02-04 23:37:03 +00:00
Ryan Weaver
52b3e21969 Only getting the target platform when it's *actually* needed to avoid errors
initialize() is called sometimes, even when the following code doesn't need
the targetPlatform property. Specifically, in AbstractClassMetadataFactory::getAllMetadata().

But as of DBAL 2.5.0, calling Connection::getDatabasePlatform() will make a
connection to the database, which means that sometimes it may fail (e.g. you
haven't configured your database yet). As a result, calling a method like
AbstractClassMetadataFactory::getAllMetadata() - which does not need the
targetPlatform - will fail, because determining the targetPlatform requires
a connection, which fails.

This avoids that - we only get the targetPlatform *when* we need it, which
are cases where we're doing things that do indeed need a connection.
2015-02-04 23:35:02 +00:00
Marco Pivetta
c4b59b4eb0 #1169 DDC-3343 - adapting patch to 2.4 branch 2015-01-24 12:50:10 +01:00
Marco Pivetta
ee9aebf569 #1254 DDC-3500 - fixed duplicate JOIN aliases in CTI + WITH condition joins 2015-01-18 16:43:31 +01:00
Marco Pivetta
91e5c0d443 Merge pull request #1231 from aivus/2.4-DDC-1590-backport
Backport 'Merge pull request #1098 from encoder32/DDC-1590' to 2.4 branch
2015-01-17 22:19:29 +01:00
Marco Pivetta
05342b0b94 Merge pull request #1254 from vitaliyberdylo/2.4
Fix applying ON/WITH conditions to first join in Class Table Inheritance
2015-01-17 21:56:32 +01:00
Andrea Sprega
b5e40fe5f5 DDC-3493 - fixed EntityGenerator parsing for php 5.5 "::class" syntax 2015-01-15 04:20:16 +01:00
Strate
8d33ccced1 Fix applying ON/WITH conditions to first join in Class Table Inheritance
Now we build nested joins for CTI when using ON/WITH clause.
2015-01-14 19:55:54 +02:00
Carnage
d3112bf119 Fixed issue 2015-01-13 02:35:50 +01:00
Marco Pivetta
4c8abd5d83 Backport 'Merge pull request #1098 from encoder32/DDC-1590' to 2.4 branch 2014-12-26 15:56:01 +02:00
Marco Pivetta
71f446f23b Bump version to 2.4.8 2014-12-16 14:47:17 +01:00
Marco Pivetta
2bc4ff3cab Release v2.4.7 2014-12-16 14:45:01 +01:00
Gareth Evans
fae0f6a29a 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:38:21 +01:00
Marco Pivetta
37516d7548 DDC-3434 - adding note on why restoring 'HIDDEN' selected fields is relevant 2014-12-05 18:07:47 +01:00
Marco Pivetta
24c4ec91e5 DDC-3434 - HIDDEN modifier marked fields in ORDER BY clause are always preserved when creating a paginator subquery 2014-12-05 18:07:41 +01:00
Marco Pivetta
060bbb1366 DDC-3336 - applied hotfix: only PathExpression instances have a $field property 2014-12-05 16:45:57 +01:00
Marco Pivetta
df99353f19 #1188 - Simplified and optimized parameter un-setting logic 2014-11-28 12:16:21 +01:00
Marco Pivetta
8b5dae30a5 #1188 - Importing parser class 2014-11-28 12:16:13 +01:00
Marco Pivetta
5f9dc2e5bc #1188 - making Doctrine\ORM\Tools\Pagination\Paginator#getCountQuery() private, as it is an implementation detail 2014-11-28 12:15:35 +01:00
Marco Pivetta
2dbe28a150 #1188 - removing unused variable assignments 2014-11-28 12:15:28 +01:00
Paweł Kolanowski
ea3856673d Missing doc block, removed parse() parameter.
Missing doc block, removed parse() parameter.
2014-11-28 12:15:17 +01:00
Merixstudio
ae198d5e45 Allowed to get count query from paginator. 2014-11-28 12:14:31 +01:00
Merixstudio
705c33bc35 Fixed counting exception
Fixed "Invalid parameter number: number of bound variables does not match number of tokens " exception during execution count on Query where select part of query contains :parameters.
2014-11-28 12:14:20 +01:00
Luís Otávio Cobucci Oblonczyk
ccbe849a72 Use docblox from EntityManagerInterface
(cherry picked from commit 6d58824ac52a63928c5d5e9a9d0b9a184cd92c7e)
2014-11-23 17:08:08 +02:00
Luís Otávio Cobucci Oblonczyk
2b8e03ff12 Fixing FQCN on docblox
(cherry picked from commit 67135e5d6f999f6eb9fba0fa20d29cf3bd664cea)
2014-11-23 17:00:22 +02:00
Luís Otávio Cobucci Oblonczyk
c4e93cf68c Documenting interface methods (based on entity manager)
(cherry picked from commit 877ba9bf17743cb7a1940ec62171eac98fd99045)
2014-11-23 16:59:50 +02:00
Marco Pivetta
cfdef3bf19 Merge pull request #925 from deeky666/DDC-2310-2.4
[DDC-2310] [DDC-2675] [2.4] Fix SQL generation on table lock hint capable platforms
2014-11-12 00:31:13 +01:00
Marco Pivetta
8bb1d5448b Bump version to 2.4.7 2014-10-06 15:23:31 +02:00
Marco Pivetta
bebacf79d8 Release 2.4.6 2014-10-06 15:22:50 +02:00
Marco Pivetta
a69584a841 DDC-3120 - Using ReflectionClass#newInstanceWithoutConstructor() also with PHP 5.6+ 2014-10-06 14:26:00 +02:00
Marco Pivetta
072e1eee7b Bump version to 2.4.6 2014-09-23 00:04:35 +02:00
Marco Pivetta
c0d3cdbdfb Release 2.4.5 2014-09-22 23:58:51 +02:00
Benjamin Nolan
dbbe7a4be5 Fix for HHVM 2014-09-22 20:00:15 +01:00
Marco Pivetta
406e177062 Bump version to 2.4.5 2014-07-11 05:13:19 +02:00
Marco Pivetta
fc19c3b53d Release 2.4.4 2014-07-11 05:05:53 +02:00
Marco Pivetta
42226dadd1 DDC-3208 - hotfix for DDC-3160 backported to 2.4.x 2014-07-11 04:49:30 +02:00
Benjamin Eberlei
84f8ef5ca4 Bump version to 2.4.4 2014-06-10 13:49:09 +02:00
Benjamin Eberlei
8a13376d42 Release 2.4.3 2014-06-10 13:49:08 +02:00
Benjamin Eberlei
859465b691 Fix wrong version 2014-06-03 21:43:21 +02:00
Benjamin Eberlei
530c01b5e3 [DDC-3120] Fix bug with unserialize bc break in PHP 5.4.29 and PHP 5.5.13 2014-06-03 17:36:31 +02:00