Luís Cobucci
942bb6cb1f
Remove dead code from OrmFunctionalTestCase
2017-04-30 19:36:39 +02:00
lemartin
7c6c5d87c8
Fix quoting issues related to ticket #6402
...
Apply quoting strategy to foreign key columns of one-to-one relation so
that correct select statements are generated. And use unquoted column
names in result mapping instead of quoted ones, as consumers (namely
IdentifierFlattener) expect unquoted column names.
2017-04-30 13:51:49 +02:00
Luís Cobucci
ccaa4b8ce1
Use getMultiple()
to fetch associations as well
2017-04-30 13:43:29 +02:00
Vytautas Stankus
a557c97a93
Add support for STARTS_WITH and ENDS_WITH comparison operators
2017-04-30 13:19:51 +02:00
Jarek Jakubowski
38bfcc6a7a
Fix notice in ClassMetadata when there is no ID Column defined
...
When you forget about defining the ID/PK Column, then this ugly Notice appear.
Now it will throw nice Exception.
2017-04-30 11:38:47 +02:00
Marco Pivetta
03972c9c3a
Merge pull request #6410 from PowerKiKi/patch-2
...
Minor typo naming strategy documentation
2017-04-23 14:25:39 +02:00
Adrien Crivelli
692a1afa86
Minor typo naming strategy documentation
2017-04-22 00:05:57 +09:00
Alessandro Lai
4eb4465169
Fix as per review
2017-04-18 11:57:49 +02:00
Marco Pivetta
318e9a5596
Merge pull request #6400 from neobyteUK/master
...
Fix incorrect YAML datetime version field.
2017-04-15 02:23:56 +02:00
Richard Henry
e44a83fc7b
Fix incorrect YAML datetime version field.
2017-04-15 01:18:44 +01:00
Marco Pivetta
b88480212a
Merge pull request #6399 from neobyteUK/master
...
Fix incorrect YAML example for versioning a field.
2017-04-15 01:24:06 +02:00
Richard Henry
6b6c300319
Fix incorrect YAML example for versioning a field.
2017-04-15 00:12:53 +01:00
Marco Pivetta
7c5b27da2c
Merge pull request #6395 from yannickl88/master
...
Updated broken links
2017-04-12 23:14:30 +02:00
Yannick de Lange
7e50a965fa
Updated broken links
...
Updated all links pointing to
http://www.doctrine-project.org/documentation/ * to their
http://docs.doctrine-project.org counterparts
2017-04-12 23:09:48 +02:00
Sergio Santoro
e798bfe34a
[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-04-11 17:50:01 +02:00
mike
0865181702
Do not force an order of definition in the entity elements
2017-04-11 09:43:50 +02:00
mike
b43325760d
Add a type for the class FQCN
2017-04-11 09:43:31 +02:00
mike
f537eb2915
Add a table name type that accept quoted table name
2017-04-11 09:43:25 +02:00
chihiro-adachi
2c5e76c961
fix class name.
2017-04-07 14:33:41 +02:00
Marco Pivetta
03b4397557
Merge pull request #6378 from Sam-Burns/phpunit6
...
PHPUnit 6
2017-04-01 06:49:33 +02:00
Sam-Burns
3d7a7346f7
Quieting risky test warnings where tests do actually perform assertions
2017-03-31 23:23:22 +01:00
Sam-Burns
5bd7bd8d48
Updating to PHPUnit 6
2017-03-31 21:59:02 +01:00
Marco Pivetta
904f4d5021
Merge pull request #6377 from Sam-Burns/minimum-dependencies
...
Minimum dependencies
2017-03-31 20:46:14 +02:00
Sam-Burns
7aab261c24
Switching to a PHPUnit version that doesn't throw a stty-related PHP warning on Travis
2017-03-31 15:46:04 +01:00
Sam-Burns
f5b4e8c823
Specifying minimum version of doctrine/annotations with which tests pass
2017-03-31 15:24:07 +01:00
Sam-Burns
60cc11461d
Bumping doctrine/cache minimum version, to make tests pass
2017-03-31 15:07:53 +01:00
Sam-Burns
f2edf36248
Bumping doctrine/collections minimum version, to make tests pass
2017-03-31 15:07:53 +01:00
Sam-Burns
d6049f8631
Adding breaking build testing with minimum Composer dependencies
2017-03-31 15:07:29 +01:00
Adam Gąsowski
5507e0be29
Fix wrong variable name
...
Fix $fieldMapping to $embeddedClass in generateEmbeddedPropertyDocBlock
2017-03-23 19:12:40 +01:00
Marco Pivetta
1aa02f9afc
Merge pull request #6326 from SenseException/check-option
...
[Documentation] Add column check-option to documentation
2017-03-12 11:53:13 -04:00
Boris Yonchev
bd1efaf528
DDC-2780 - Fixed issue with IS NULL on join aliases
2017-03-07 18:34:50 +01:00
Claudio Zizza
504e701020
Add existing column check-option to documentation
2017-03-06 00:34:18 +01:00
Marco Pivetta
e4704beaf9
Merge pull request #6287 from lcobucci/fix-test-suite
...
Fix EntityManagerDecorator tests
2017-02-13 01:46:01 +01:00
Luís Cobucci
dcc80af7d9
Fix EntityManagerDecorator tests
...
We were expecting a return value for all methods but on 6a56df9a24
we changed some methods to be void and of course that affected the
ORM.
2017-02-12 18:38:21 +01:00
Marco Pivetta
10935dd843
Merge pull request #6285 from svencan/doc-typos
...
Fix typos and wording in NamingStrategy documentation
2017-02-10 18:55:05 +01:00
Sven Cannivy
260c8d0113
Fix typos and wording in NamingStrategy documentation
2017-02-10 18:48:57 +01:00
Marco Pivetta
23ae83e351
Merge pull request #6268 from enumag/patch-4
...
Fix annotation
2017-01-31 12:00:42 +01:00
Jáchym Toušek
64ab53a243
Fix annotation
2017-01-31 11:57:01 +01:00
mikeSimonson
e42d0bdda5
Merge pull request #6262 from mikeSimonson/doc
...
Fix a link to a ref in another page
2017-01-27 09:30:38 +01:00
mike
f3df000d29
Fix a link to a ref in another page
2017-01-27 09:27:25 +01:00
mikeSimonson
5989ea1752
Merge pull request #6260 from mikeSimonson/doc
...
Document the Custom option of the generated value annotation
2017-01-26 14:12:34 +01:00
Marco Pivetta
888f1be7c9
Merge pull request #6257 from weaverryan/add-criteria-note
...
Adding a note about the `Doctrine\ORM\QueryBuilder#addCriteria()` method
2017-01-25 16:56:12 +01:00
Ryan Weaver
63bd6c359c
[Docs] Adding a note about the addCriteria method on QueryBuilder
2017-01-25 10:52:17 -05:00
mike
773af5b306
Document the Custom option of the generated value annotation
2017-01-25 15:54:03 +01:00
Marco Pivetta
9c76c3766f
Merge pull request #6251 from mbeccati/ddc2660-test-fix
...
Add missing group to DDC2660Test.php
2017-01-24 13:43:59 +01:00
Matteo Beccati
c816d375e8
Add missing group to DDC2660Test.php
...
With the current PHPUnit version and PHP 7.2/master, the test fails with:
1) Doctrine\Tests\ORM\Functional\Ticket\DDC2660Test::testIssueWithExtraColumn
array_flip(): Can only flip STRING and INTEGER values!
2) Doctrine\Tests\ORM\Functional\Ticket\DDC2660Test::testIssueWithoutExtraColumn
array_flip(): Can only flip STRING and INTEGER values!
Due to the group being NULL vs "" on older PHP versions.
I will also file a bug report or fix to PHPUnit and/or PHP itself, but it sounds
like the missing group was just a typo.
2017-01-24 12:46:19 +01:00
Marco Pivetta
b181228d69
Merge pull request #6250 from johndodev/patch-1
...
Note on Entity listeners
2017-01-23 09:57:58 +01:00
John
57f560401b
Note on Entity listeners
...
As requested here https://github.com/doctrine/doctrine2/issues/6247#issuecomment-274123780 I thought it should be interesting to note that.
The note could be longer, like "You should avoid to have multiple methods for the same event (e.g. multiple @PrePersist) since the execution order is not guaranteed".
2017-01-23 09:35:26 +01:00
Luís Cobucci
119aa4e46c
Merge pull request #6244 from lcobucci/l2c-ensure-root-classname-everywhere
...
Make sure we're using the rootEntityName on all places
2017-01-20 00:05:48 +01:00
Luís Cobucci
1f53afa9cd
Make sure we're using the rootEntityName on all places
...
Otherwise we might end up with duplicated cache entries and weird
results (specially regarding associations).
2017-01-19 17:24:47 +01:00