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
Sergey Fedotov
d13327eca2
Fix undefined index for discriminator column in SchemaTool
2017-06-21 06:27:15 +02:00
Guilliam Xavier
87e9879edd
Fix MetadataFilter not testing filters after first
2017-06-21 06:14:01 +02:00
Marco Pivetta
d2be4a2b48
#6167 #6168 - clarifying on the reasoning why query
is used instead of fetchColumn
2017-06-21 05:44:58 +02:00
Michał Kurzeja
edffb4d449
#6167 - fixed tests and added info why query is used in SequenceGenerator
2017-06-21 05:42:26 +02:00
Michał Kurzeja
60b6073643
Fixes #6167 - nextval issue on master-slave PostgreSQL setup
2017-06-21 05:42:26 +02:00
Marco Pivetta
a7dcdd8d48
Documenting thrown exception type, spacing #6162
2017-06-21 05:36:13 +02:00
SimonHeimberg
f5d4db7d9c
Report that FROM and JOIN do not support Subqueries
2017-06-21 05:31:25 +02:00
Mathew Davies
747c1857d6
Make the new aggregate function definitions final.
2017-06-20 07:27:32 +02:00
Mathew Davies
3e3751cfd9
Remove aggregate function conditional in SqlWalker.
2017-06-20 07:27:27 +02:00
Mathew Davies
966f9a84c2
phpDoc and type hint changes.
2017-06-20 07:27:26 +02:00
Mathew Davies
e4847534a4
Remove @throws in Configuration where necessary.
2017-06-20 07:27:25 +02:00
Mathew Davies
866418e40f
No longer treat aggregate functions as a special case.
2017-06-20 07:27:24 +02:00
Mathew Davies
e4ff7a35a8
Write a test case for a custom function override.
2017-06-20 07:27:22 +02:00
Mathew Davies
914c400a7d
Check for custom functions first.
2017-06-20 07:27:20 +02:00
Artem Stepin
43009682a4
minor code work:
...
- method calls with incorrect case
- removed unused imports
- typos and some other minor code smells
- documentation update (wrong return types etc. )
2017-06-08 22:04:07 +02:00
Marco Pivetta
971c400025
Merge pull request #6462 from mkosiedowski/proxy-embedded-fields-fix
...
Fix #6460 - \Doctrine\ORM\Mapping\ClassMetadataInfo::hasField should return true for embedded fields
2017-06-01 15:52:07 +02:00
Maximilian Bosch
49bb345533
#5934 - #5938 - fix accidentally introduced regression with wrong target of ::class expression
2017-05-31 15:01:25 +02:00
Maximilian Bosch
fcfaa13df9
#5934 - #5938 - use ClassMetadata::class
expression rather than FQCN in config drivers as of @Ocramius's review
2017-05-31 14:52:55 +02:00
Maximilian Bosch
92476b5953
#5934 - add fetch
option to AssociationOverride
in order to override fetch strategy for subclasses of entities
2017-05-30 18:19:48 +02:00
Luís Cobucci
f9062d9931
Force YAML parser to convert keys to string
...
Since Symfony 3.3 implicit conversion is not enabled by default so we
need to pass that flag manually.
Related to: https://github.com/symfony/symfony/pull/21774
2017-05-30 13:53:45 +02:00
Franck Magnan
db528a44b1
Update QueryBuilder.php
...
Hello,
thank you very much for your work, it's awesome!
I found a minor error in PHPDOC for method setParameter. Argument "type" can be a string or null but can be also an int if it comes from \PDO::PARAM_*. So I've changed typehint "string" into "mixed".
2017-05-23 18:42:01 +02:00
Maciej Kosiedowski
f304685c68
Fix #6460 - \Doctrine\ORM\Mapping\ClassMetadataInfo::hasField should return true for embedded fields
2017-05-22 14:41:06 +02:00
Simone Gentili
fac7e8facb
align equals signs
2017-05-13 23:05:37 +02:00
Marco Pivetta
c222c1d17a
Merge pull request #6433 from mpdude/patch-1
...
Remove dead code in the schema tool
2017-05-10 19:31:40 +02:00
Luís Cobucci
885c431bd9
Pass the connection parameters for cache key generation
...
That argument was added to not have key collisions for different
connections.
More info: https://github.com/doctrine/dbal/pull/713
2017-05-10 17:52:38 +02:00
Matthias Pigulla
5c1908d82f
Remove dead code
...
Hopefully this does not do anything...?
2017-05-09 19:21:49 +02:00
Luís Cobucci
e71272e2b4
Evict result set cache if Query#expireResultCache() was called
2017-05-02 23:25:56 +02:00
Marco Pivetta
2c1ebc4ef1
Merge pull request #6416 from lcobucci/fix-quote-on-inheritance
...
Fix quoting when using inheritance as well
2017-05-02 09:42:03 +02:00
Timothy Clissold
0a10f347d3
Fix inheritance join alias
2017-05-02 00:17:16 +02:00
Marcin Szulc
a360da5a7e
Fix lazy loading of 1-to-1 relationship with custom id object
...
Fixing case when lazy loading of entity in one-to-one relationship on the side without foreign key
did not return eht entity because of custom type not being detected and properly formatted before
applying to database query.
Closes https://github.com/doctrine/doctrine2/issues/5887
2017-04-30 19:53:28 +02:00
Luís Cobucci
0aef63b350
Fix quoting also when using inheritance
2017-04-30 19:36:41 +02:00
Luís Cobucci
4ebf27de35
Use "quoted" from existing data if exists
...
In order to keep that information for inheritance mapping.
2017-04-30 19:36:40 +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
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
Boris Yonchev
bd1efaf528
DDC-2780 - Fixed issue with IS NULL on join aliases
2017-03-07 18:34:50 +01:00
Jáchym Toušek
64ab53a243
Fix annotation
2017-01-31 11:57:01 +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
Luís Cobucci
4f28aaa206
Refactor to use class_map() instead
2017-01-16 23:22:52 +01:00
Mikhail Polyanin
bb943afabe
Optimization. Multiple get in QueryCache
2017-01-16 23:02:23 +01:00
Marco Pivetta
09cbb9ff48
Merge pull request #5600 from billschaller/remove-dead-code-walk-case-expression
...
Remove dead code SQLWalker::walkCaseExpression
2017-01-15 23:52:38 +01:00
Marco Pivetta
31c40f8342
Merge pull request #6216 from malukenho/enhancement/remove-unused-param
...
Remove unused "$className" argument
2017-01-12 17:04:01 +01:00
Luís Cobucci
5a562b3571
Appends cache namespace when it exists (for L2C regions)
...
We're overriding the namespace without even checking if it was previously
set, what causes problems when people uses that feature 😉
2017-01-11 11:01:39 +01:00
Jáchym Toušek
617ec9219e
Fix annotations
2017-01-10 09:12:18 +01:00
Jefersson Nathan
eaeecc3857
Remove unused arguments
2017-01-05 18:21:49 -03:00
Benjamin Morel
3ce833fb62
getSingleScalarResult() returns NULL when the query yields no results
...
`NoResultException` is not thrown in this case.
2016-12-26 02:11:50 +01:00
Marco Pivetta
a22f165026
#6174 #5570 removed unused/dead code
2016-12-18 14:45:08 +01:00
Marco Pivetta
ab0e854830
#6174 #5570 CS - spacing
2016-12-18 14:39:46 +01:00