Sergio Santoro
e91dcf8fb4
Fix discriminator resolution when using parameters
2017-06-24 13:35:44 +02:00
Alessandro Lai
b1f7c59ed5
Adding a failing test case for parameter binding using metadata with INSTANCE OF
2017-06-24 10:58:18 +02:00
Alessandro Lai
2fd8752818
Simplify stubs used in tests
2017-06-24 10:58:18 +02:00
Alessandro Lai
d2f7514248
Put all tests classes in a single namespace
2017-06-24 10:58:18 +02:00
Alessandro Lai
167dfde00f
Apply additional fixes to the SqlWalker to fix tests
2017-06-24 10:58:18 +02:00
Alessandro Lai
5181eae8d6
Refactor a bit the SqlWalker modifications
2017-06-24 10:58:18 +02:00
Alessandro Lai
31d2d84160
Fix test
2017-06-24 10:58:18 +02:00
Alessandro Lai
bd47ec95a1
Move tests to ticket namespace (and rename them)
2017-06-24 10:58:18 +02:00
Alessandro Lai
0e88f1b654
Split SqlWalker::walkInstanceOfExpression method
2017-06-24 10:58:18 +02:00
Alessandro Lai
aa233f8e57
Fix small CS issues as per review
2017-06-24 10:58:18 +02:00
Alessandro Lai
04acde667a
Fix as per review
2017-06-24 10:58:18 +02:00
Sergio Santoro
7d98135084
[QUERY] "INSTANCE OF" now behaves correctly with subclasses
...
There was a bug in the "INSTANCE OF" operator as described in
https://groups.google.com/forum/#!topic/doctrine-user/B8raq8CNMgg
"INSTANCE OF" was not taking into account subclasses.
It was merely translating the class to its discriminator.
This is not correct since the class can have subtypes and those
are, indeed, still instance of the superclass.
Also, classes may not have a discriminator (e.g. abstract classes).
This commit also provides useful tests to avoid regression.
2017-06-24 10:58:18 +02:00
Marco Pivetta
388afb46d0
Merge pull request #6245 from lcobucci/l2c-use-getMultiple
...
Use `getMultiple()` to fetch associations as well in L2 cache fetch operations
2017-06-24 09:17:55 +02:00
Marco Pivetta
5d98247178
Merge pull request #5756 from whyte624/master
...
s/__tostring()/__toString() in Expr\OrderBy
2017-06-24 04:12:55 +02:00
Marco Pivetta
b66dd0b6fa
Merge pull request #5787 from iBet7o/patch-doc
...
Fix bug: orderBy documentation
2017-06-24 04:05:41 +02:00
Marco Pivetta
807f1422a3
Merge branch 'fix/#1515-clean-hydrator-listeners-on-hydration-end'
...
Close #1515
2017-06-24 03:41:00 +02:00
Marco Pivetta
995054d884
#1515 dropping DDC-3146 test, which was moved to the hydration tests
2017-06-24 03:40:46 +02:00
Marco Pivetta
0b5d877d5f
Migrating #1515 tests to AbstractHydratorTest
2017-06-24 03:40:12 +02:00
Marco Pivetta
067e01e0d7
#1515 cleaning up test case, since the PHPUnit 5.4+ API is much nicer
2017-06-24 03:32:58 +02:00
Marco Pivetta
aba486ea2d
#1515 removing redundant assignment, short array notation
2017-06-24 03:27:12 +02:00
Emiel Nijpels
9eb2d6139e
DDC-3146 remove event listener from event listener in abstract hydrator in cleanup function
2017-06-24 03:22:12 +02:00
Marco Pivetta
41bcdb3268
Merge pull request #6494 from astepin/gh-6356
...
Add failing test for #6314 and PR #6356
2017-06-23 12:54:29 +02:00
Marco Pivetta
95b30c1d40
Merge pull request #6515 from lcobucci/use-updated-environment
...
Use the Travis' Trusty build environment
2017-06-23 11:33:15 +02:00
Luís Cobucci
21ad7a1913
Create schema based on config file (on MySQL & MariaDB)
2017-06-23 11:21:36 +02:00
Marco Pivetta
af1ea1ae1d
Merge pull request #5623 from Jean85/patch-1
...
[DOCUMENTATION] Update tests README
2017-06-22 08:03:42 +02:00
Marco Pivetta
379acd9dfd
Merge pull request #5734 from amerryma/master
...
Update tools.rst
2017-06-22 08:02:40 +02:00
Luís Cobucci
e8332a45de
Use the Travis' Trusty build environment
...
To see if that solves the XML validation issues (since the issues are
possibly happening due to old libxml versions).
2017-06-22 08:01:13 +02:00
Luís Cobucci
3df6b7316b
Merge pull request #6243 from enumag/patch-3
...
Fix CountOutputWalker for queries with GROUP BY
2017-06-22 07:16:38 +02:00
Jáchym Toušek
fc609271e0
Fix CountOutputWalker for queries with GROUP BY
2017-06-22 07:09:20 +02:00
Marco Pivetta
b925cce6c4
Merge branch 'docs/#5677-upgrade-getting-started-documentation'
...
Close #5677
2017-06-21 08:29:31 +02:00
NateC
b446afd937
Updating the Getting Started guide's documentation
2017-06-21 08:29:20 +02:00
Marco Pivetta
9cfdf1ef81
#6325 documenting minor BC break introduced by adding a required parameter to the exception named constructor
2017-06-21 08:20:20 +02:00
Marco Pivetta
9b9128ae77
Merge branch 'improvement/#6325-improve-dql-exception-message-for-single-valued-inverse-association-path'
...
Close #6325
2017-06-21 08:16:49 +02:00
Marco Pivetta
b21cb3e2a0
#6325 adding IDE hints, type hints, replacing double quotes with single quotes
2017-06-21 08:16:24 +02:00
Tomasz Darmetko
633a442046
Add path expresion to QueryException::associationPathInverseSideNotSupported()
2017-06-21 08:12:04 +02:00
Marco Pivetta
33cee11e6f
Merge pull request #6389 from mikeSimonson/xml-dtd-improvements
...
XSD definition improvements
2017-06-21 08:08:14 +02:00
Marco Pivetta
98aa25b0ea
Merge branch 'fix/#5798-undefined-schema-tool-index'
...
Close #5798
2017-06-21 06:34:57 +02:00
Marco Pivetta
6e9c1d8a4b
#5798 adding void
test method return declaration, using ::class
reference over string reference
2017-06-21 06:34:45 +02:00
Sergey Fedotov
d13327eca2
Fix undefined index for discriminator column in SchemaTool
2017-06-21 06:27:15 +02:00
Marco Pivetta
fe8259a094
Merge branch 'fix/#5715-fix-metadata-filtering-in-cli-tools'
...
Close #5715
2017-06-21 06:21:52 +02:00
Marco Pivetta
01d226aff0
#5715 removed superfluous mapping information
2017-06-21 06:21:22 +02:00
Marco Pivetta
29fe76cced
#5715 short array notation
2017-06-21 06:20:30 +02:00
Marco Pivetta
2ce40a6aeb
#5715 s/CLASSNAME/class
2017-06-21 06:18:24 +02:00
Marco Pivetta
f0e403211b
#5715 adding return hints \(void\) to test methods
2017-06-21 06:17:18 +02:00
Guilliam Xavier
a9cc522e8a
Add regex tests for MetadataFilter (PR #507 )
2017-06-21 06:14:01 +02:00
Guilliam Xavier
1afa8a915d
Add more basic tests for MetadataFilter
2017-06-21 06:14:01 +02:00
Guilliam Xavier
87e9879edd
Fix MetadataFilter not testing filters after first
2017-06-21 06:14:01 +02:00
Guilliam Xavier
652358a4de
Add failing test for #5715 (unit test for MetadataFilter)
2017-06-21 06:14:01 +02:00
Marco Pivetta
07a9b10f36
Merge branch 'fix/#6168-#6167-force-nextval-selection-on-the-master-server'
...
Close #6167
Close #6168
2017-06-21 06:04:34 +02:00
Marco Pivetta
a97c2659fc
#6167 #6168 rewrote SequenceGeneratorTest
for better readability and error messages
2017-06-21 06:04:06 +02:00