Luís Cobucci
0be52b0087
Isolate entities used by the new test
...
To ensure we don't have any unintended side-effect.
2018-11-21 00:20:20 +01:00
Tobias Schultze
ee8dc496d9
Fix applying collation on foreign key columns
2018-11-21 00:20:15 +01:00
Alex Denvir
72121c01ec
[XML] Fix default value of many-to-many order-by to ASC
2018-11-20 12:33:29 +01:00
Andreas Braun
0552749059
Fix parameter value processing for objects with unloaded metadata
2018-11-15 11:21:05 +01:00
Luís Cobucci
d93956eff0
Use HTTPS endpoint for XML schema location
2018-11-12 11:29:32 +01:00
naitsirch
b3b06d3e7d
Fixed URLs of doctrine-mapping.xsd in docs
...
Until now the references to the `doctrine-mapping.xsd` consisted of different URLs.
A grep of docs showed:
* /Users/robo/dev/php/Doctrine/doctrine-mapping.xsd
* http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd
* http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd
* https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd
Now it is used http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd everywhere.
2018-11-12 11:09:15 +01:00
Michael Moravec
1d71fbf77b
Merge pull request #7367 from timdev/fix/entitymanager-find-with-optimistic-lock-no-need-tx
...
Fix for BC break in 2.6.2 when calling EM::find() with LockMode::OPTIMISTIC outside of a TX
2018-09-23 06:43:26 +02:00
Michael Moravec
fd2baf6f65
Merge pull request #7260 from stof/regression_commit_order
...
Fix the handling of circular references in the commit order calculator
2018-09-23 05:44:14 +02:00
Tim Lieberman
3acfa50214
Fix for BC break #7366 when calling EM::find() with LockMode::OPTIMISTIC outside of a TX
2018-09-23 05:33:05 +02:00
Guilliam Xavier
47c72e583e
correct load-only DOMDocument constructor in test
2018-09-23 04:52:52 +02:00
Christophe Coevoet
11a7f359d1
Add a unit test reproducing the commit order regression
2018-09-20 12:11:44 +02:00
Christophe Coevoet
145f1f5198
Add a test reproducing GH7259
2018-09-20 11:53:08 +02:00
Pierre-Louis FORT
32efbd3edd
Handle removed parameters by tree walker in Paginator
2018-08-27 11:23:21 +02:00
Michael Moravec
e26158a45e
Fix #7286 : StringPrimary no longer accepts aggregate functions as argument
2018-07-09 19:12:39 +02:00
Michael Kühn
ff68806bfa
Fix for #7068 : EntityManager::find() with pessimistic lock should check for transaction
2018-07-03 03:00:58 +02:00
Michael Moravec
ac1e1c7d23
Fix compatibility with DBAL 2.8 where OFFSET 0 is no longer generated ( doctrine/dbal#3157 )
2018-07-03 02:14:23 +02:00
Donovan Bourlard
2560d4f419
Fix default value of one-to-many order-by to ASC, #7141
2018-03-22 14:51:02 +01:00
Marius Klocke
b952dac339
Add a failing test for issue 7062
2018-02-26 14:39:05 +01:00
Jan Langer
e68717b725
Fix updating entities with quoted identifier association
2018-02-25 20:10:18 +01:00
Vašek Henzl
23f4f03575
Add failing tests for #6531
...
Tests are based on examples from "Composite and Foreign Keys as Primary Key" tutorial:
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/composite-primary-keys.html
2018-02-19 22:14:57 +01:00
Luís Cobucci
a912fc09be
Add @group
to delete query test
2018-02-19 22:04:28 +01:00
Kevin Bond
15a4302902
Inheritance middle-layer doesn't get hydrated with HYDRATE_OBJECT
2018-02-19 12:07:41 +01:00
Carnage
ae6d80daab
Adds sql generation test
2018-02-19 00:50:27 +01:00
Luís Cobucci
44e82e2720
Remove unused functions
2018-02-17 19:49:16 +01:00
Luís Cobucci
e94467d6da
Fix incorrect value in L2C+lock test
...
Which was causing the optimistic lock to fail in MySQL since it was
trying to update the data with exact same value.
2018-02-17 19:46:22 +01:00
‘Andrey Lukin’
8fc1d74820
Add test for L2C using optimistic locks
...
As explained in #7067 , fields with `@ORM\Version` annotation were not
being added to L2C cached data.
2018-02-17 18:05:27 +01:00
Luís Cobucci
7873f700b0
Add missing tests for day calculation
...
For the DATE_SUB() and DATE_ADD() functions.
2018-02-09 17:21:06 +01:00
Luís Cobucci
46c0861f45
Fix date calculation in tests (again)
...
Now using PHP to calculate the expected date manipulation, keeping a day
as delta since PHP resets the hour when performing operations with
days/weeks/months/years.
February is a wonderful month, isn't it?
2018-02-09 17:21:06 +01:00
Michael Moravec
cf99d62472
QueryDqlFunctionTest: Increase delta for testDateAdd() to work in February
2018-02-02 08:59:35 +01:00
Nicolas FRANÇOIS
40f2a3efba
Add test case for many-to-many collection deletion, when owning side has a composite PK
2018-01-30 01:04:28 +01:00
Tyler Romeo
bb8970286d
Allow association mappings as IDs for joined-table inherited entity
...
SchemaTool has custom logic for creating the primary key of a
joined-table inherited entity. This logic overlooked association maps
as a possible source for identity columns, resulting in a fatal error
when fetching the primary key list for child entities.
Removed any custom logic for generating primary keys for root entities
in joined-table inheritance, deferring to the common logic used for
other entities.
Also adjusted the child entity logic, scanning association maps for
identity columns, and including the column as appropriate. It also
ensures that the primary key columns are in the correct order.
2017-12-19 17:58:31 +01:00
Guilherme Blanco
a16dc65cd2
Fixes #1391 , DDC-3693
2017-12-18 22:46:48 -05:00
Konstantin Kuklin
c308986a90
Fix insufficient variable check
...
To ensure that `AbstractQuery#setResultCacheProfile()` doesn't raise
errors when being called with `null`.
2017-12-17 03:21:52 +01:00
Maximilian Ruta
32c125def1
Fix syntax error when join with discriminator
2017-12-17 01:25:50 +01:00
Luís Cobucci
441c5d138c
Reduce complexity of LimitSubqueryWalker#walkSelectStatement()
...
Ensuring that the code follows our code standards.
2017-12-16 23:31:50 +01:00
Gabriel Caruso
d0d802309c
Clean elses
2017-12-14 05:55:54 -02:00
Guilherme Blanco
e149f89cfe
Merge pull request #6820 from plfort/#6819-pagination-optim
...
#6819 Optimize LimitSubqueryWalker
2017-12-10 19:56:31 -05:00
JKapitein
ad0a8c53fa
Add Type::GUID to $typeAlias list in EntityGenerator
...
Right now, when generating entities, a column of type 'guid' will generate the following PHPDoc:
```
/**
* Get id
*
* @return guid
*/
public function getId() {...}
```
Since guid is not a valid PHP type, this throws a warning in PHPStorm, and I assume most IDEs.
Adding the type to the type alias list fixes the problem.
2017-11-28 00:11:32 +01:00
Luís Cobucci
bc7aeb9d11
Make entity generator create the correct options
...
The `EntityGenerator` was not creating the field options for all
supported values.
2017-11-26 20:05:52 +01:00
foaly-nr1
b211dd4db7
Add failing test for misleading exception message
...
Describes: https://github.com/doctrine/doctrine2/issues/6029
2017-11-26 17:55:59 +01:00
Sasha Alex Romanenko
b3331b2237
Enforce sequence XSD requirement
...
Supply default values for allocationSize and initialValue optional parameters.
Related to: https://github.com/doctrine/doctrine2/issues/6682
2017-11-26 16:33:27 +01:00
Mathieu Duplouy
15c145f3b3
Add failing test for DCOM-288
...
Reported on: https://github.com/doctrine/common/issues/600
2017-11-26 13:54:54 +01:00
Jan Jakes
99b2e57606
Fix overwriting explicit cache namespace
2017-11-26 12:48:12 +01:00
Luís Cobucci
d3759a2447
Fix incorrect arguments on SetupTest
...
Which was only caught by adding proper type declaration on private
methods.
2017-11-26 12:26:28 +01:00
Luís Cobucci
b8fd708139
Fix parameter name comparison in QueryBuilder#setParameter() with different types
2017-11-24 02:43:01 +01:00
Michael Moravec
6cb5a9c50a
Fix parameter name comparison in AbstractQuery#setParameter() with different types
2017-11-24 02:43:00 +01:00
Michael Moravec
4bbb1067ac
Add failing test for #6699
2017-11-24 02:42:59 +01:00
Oskar Stark
6b5eb11458
Use SymfonyStyle for command output
2017-11-24 01:25:17 +01:00
Luís Cobucci
43a88d539d
Format commands' tests
...
To simplify and organise the code (also replacing `$this->assert*`
with `self::assert*`).
2017-11-24 01:25:15 +01:00
Pierre-Louis FORT
4ab9413675
Test that orderByItem is string
2017-11-10 10:45:57 +01:00