1
0
mirror of synced 2025-02-02 13:31:45 +03:00

8151 Commits

Author SHA1 Message Date
Marco Pivetta
4884183b95 #1169 DDC-3343 - fixing test case typos (referencing wrong/inexisting properties, inexisting owning side assigned 2015-02-05 00:16:58 +00:00
Marco Pivetta
fac410b213 #1169 DDC-3343 - aligning test suite logic to the 2.5 branch (failing tests) 2015-02-05 00:16:07 +00:00
Marco Pivetta
cbe5575f38 #1169 DDC-3343 - adding tests for orphan-removal + extra-lazy + one-to-many element removal behavior 2015-02-05 00:15:18 +00:00
Marco Pivetta
94c0e46c96 #1169 DDC-3343 - updating test expectations - one-to-many changes should be no-op unless orphan removal is specified. 2015-02-05 00:14:19 +00:00
Marco Pivetta
af59ea962f #1169 DDC-3343 - updating test expectations - one-to-many changes should be no-op unless orphan removal is specified. 2015-02-05 00:14:11 +00:00
Marco Pivetta
e05930e714 Merge branch 'hotfix/#1294-avoid-connection-with-detached-metadata-backport-to-2.4' into 2.4 2015-02-04 23:46:22 +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
97afe00d0f Merge pull request #1282 from Ocramius/hotfix/#1169-extra-lazy-one-to-many-should-not-delete-referenced-entities-2.4
Hotfix/#1169 extra lazy one to many should not delete referenced entities (backport to 2.4)
2015-01-25 05:44:14 +01:00
Marco Pivetta
51250e987e #1169 DDC-3343 - moved tests to correct test class 2015-01-24 12:51:19 +01:00
Marco Pivetta
c4b59b4eb0 #1169 DDC-3343 - adapting patch to 2.4 branch 2015-01-24 12:50:10 +01:00
Marco Pivetta
daca81861c #1169 DDC-3343 - additional test cases: removing proxies from an extra-lazy collection still updates the owning side values 2015-01-24 12:38:51 +01:00
Marco Pivetta
52fbe35bc7 #1169 DDC-3343 - correcting query count assertions on extra-lazy specific tests (some DELETE operations became UPDATE operations)
Conflicts:
	lib/Doctrine/ORM/Persisters/Collection/OneToManyPersister.php
	tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php
2015-01-24 12:38:44 +01:00
Marco Pivetta
50ac97e72d #1169 DDC-3343 - removing duplicate test 2015-01-24 12:37:41 +01:00
Marco Pivetta
cfed92a5cf #1169 DDC-3343 - integrating tests into the existing test suite
Conflicts:
	tests/Doctrine/Tests/ORM/Functional/ValueConversionType/OneToManyExtraLazyTest.php
2015-01-24 12:37:21 +01:00
Marco Pivetta
d69fd91454 #1169 DDC-3343 - importing used classe 2015-01-24 12:36:18 +01:00
Marco Pivetta
41258deed7 #1169 DDC-3343 - optimized imports 2015-01-24 12:36:10 +01:00
Marco Pivetta
193ec51607 #1169 DDC-3343 - refactoring test to use pre-existing test models 2015-01-24 12:36:01 +01:00
Marco Pivetta
7292920b15 #1169 DDC-3343 - refactoring test to use pre-existing test models 2015-01-24 12:35:50 +01:00
Marco Pivetta
24ebfb69cb #1169 DDC-3343 - minor refactoring: constant over string reference 2015-01-24 12:34:10 +01:00
Marco Pivetta
ff0168834e Conflicts:
lib/Doctrine/ORM/Persisters/Collection/OneToManyPersister.php
2015-01-24 12:33:52 +01:00
Andrea Sprega
a88550a70c [DDC-3343] Failing test case (updated) 2015-01-24 12:32:30 +01:00
Andrea Sprega
ee246af7e3 [DDC-3343] Failing test case 2015-01-24 12:32:17 +01:00
Marco Pivetta
ba04c9801d Merge pull request #1276 from TomasVotruba/travis-coverage-speedup
[2.4] travis: run coverage just once
2015-01-22 15:03:10 +01:00
Tomas Votruba
5d637af056 travis: run coverage just once 2015-01-22 13:46:29 +01:00
Marco Pivetta
ec84953af4 Merge pull request #1266 from Ocramius/hotfix/fix-schema-generation-in-tests-on-pgsql
[2.4] Fix schema generation in the test suite
2015-01-22 12:30:16 +01:00
Marco Pivetta
56c5cb41fc DDC-3518 - Schema creation statement is not quoted 2015-01-18 17:39:10 +01:00
Guilherme Blanco
e0077b290b ORM side fixes. 2015-01-18 17:09:29 +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
Marco Pivetta
8198a6ce7e Merge branch 'hotfix/#1250-DDC-3493-fix-class-pseudo-constant-parsing-in-entitygenerator-2.4-backport' into 2.4 2015-01-15 04:20:39 +01:00
Andrea Sprega
b5e40fe5f5 DDC-3493 - fixed EntityGenerator parsing for php 5.5 "::class" syntax 2015-01-15 04:20:16 +01:00
lukasmaz
ddf3125afe Test case for "class" keyword
Test case for http://www.doctrine-project.org/jira/browse/DDC-3493
2015-01-15 04:19:54 +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
Marco Pivetta
b11ae45a2f Merge branch 'hotfix/#1242-lock-uninitialized-proxies' into 2.4
Close #1242
2015-01-13 02:36:08 +01:00
Carnage
d3112bf119 Fixed issue 2015-01-13 02:35:50 +01:00
Carnage
4e4637de2e Added test to demonstrate issue 2015-01-13 02:35:44 +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
Marco Pivetta
39f2f0eb91 Merge branch 'backport/#1202-backport-null-column-option-values' into 2.4 2014-12-08 01:39:22 +01:00
Marco Pivetta
a5a7c879fc #1202 - simplified test and test asset 2014-12-08 01:38:38 +01:00
Gareth Evans
5670912d0d Added test that passes following previous commit 2014-12-08 01:38:31 +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
f45cf2629e Merge branch 'hotfix/#1211-DDC-3434-backport-to-2.4' into 2.4
Close #1211
2014-12-05 18:11:57 +01:00
Marco Pivetta
4d846c1992 DDC-3434 - removing explicit failure: 2.4 uses different column alias naming strategy logic 2014-12-05 18:11:44 +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