ReenExe
015ec444c5
use PHP common functions
2016-07-01 01:17:25 +03:00
Christopher Anciaux
76badc296a
Fix typo in PHPDoc block of QueryBuilder.php
2016-06-20 14:20:36 +02:00
Gabriel Potkány
56a6505294
removed some unused variables
2016-06-19 14:46:02 +02:00
Luís Cobucci
27f3bc1e2c
Allow the usage of embedded objects on parent classes.
...
The `ClassMetadataInfo` was always using the "current class" to
fetch the reflection of a property even when a field is declared
on the parent class (which causes `ReflectionProperty` to throw
an exception).
2016-06-19 12:35:57 +02:00
Marco Pivetta
d00069e38b
Reverting 741da7806c5d01796e243de9a122590151cb0c90, which was causing issues due to loose type checking
...
See this example on why the revert is needed: https://3v4l.org/8T34v
Code copied for reference:
```php
<?php
$a = 1;
switch ($a) {
case "1";
echo "FUCK YOU, STUPID LANGUAGE!";
break;
case 1;
echo __LINE__;
break;
}
```
2016-06-19 09:28:12 +02:00
FabioBatSilva
163dac4a91
#5854 - Fix SLC queries with multiple nested DQL aliases
2016-06-17 00:11:18 -04:00
Marco Pivetta
288e3191ce
#5854 - simple workaround to avoid populating SLC cache from DQL queries with multiple nested DQL aliases
2016-06-16 23:00:59 -04:00
Thomas Ploch
ea788fb734
Exporters should only inspect joinColumns
for owning side in bi-directional OneToOne
...
rebased commits:
- Added test case for bi-directional OneToOne in YamlExporter
- Only inspect joinColumns for owning side in bi-directional OneToOne in YamlExporter
- Adding bi-directional test case without joinColumn to XmlExporter test
- Same testcase also applied to PhpExporter
- Fixing bi-directional issue in PhpExporter when inspecting joinColumns index
- Implemented @Ocramius suggestions
2016-06-08 13:24:43 +02:00
Peter Gribanov
fa7799cec1
return check EventManager
2016-06-08 12:24:41 +03:00
Peter Gribanov
c0a87597fa
correct code style
2016-06-08 11:47:09 +03:00
Peter Gribanov
0b5b7190d7
not check EventManager
2016-06-08 11:29:43 +03:00
Peter Gribanov
fadd0a338f
add createConnection static method
2016-06-08 10:58:44 +03:00
Peter Gribanov
741da7806c
change switch/case to if/else
2016-06-08 10:29:39 +03:00
Marco Pivetta
68c5d761a8
#5849 #5850 minor performance optimization - avoiding get_class()
calls on all entity insertions
2016-06-06 00:25:48 +02:00
Marco Pivetta
b9b952ce8a
#5849 #5850 renamed clearEntityInsertions
to clearEntityInsertionsForEntityName
, for clarity
2016-06-06 00:13:39 +02:00
Marco Pivetta
20d86c5b27
#5849 #5850 refactored clearIdentityMapForEntityName
to remove useless looping
2016-06-06 00:11:19 +02:00
Marco Pivetta
14e0800293
#5849 #5850 renamed clearIdentityMap
to clearIdentityMapForEntityName
, for clarity
2016-06-06 00:10:18 +02:00
Rico Humme
beb2641492
Correct naming convention of function. Was confusing otherwise
2016-06-05 23:16:09 +02:00
Rico Humme
4d48781e2b
Split of functionality in separate functions
2016-06-05 23:16:09 +02:00
Rico Humme
70603ee3db
Clear entityInsertions for specific entityName
2016-06-05 23:16:09 +02:00
Luís Otávio Cobucci Oblonczyk
2c1818d513
Fix typo
2016-06-05 10:25:08 +00:00
Mikhail Shamin
bf322b903d
Optimize imports. Remove full qualified class names
2016-05-11 01:55:12 +07:00
Vytautas Stankus
9c320ca64f
removed unused use statement
2016-02-19 12:26:53 +02:00
Guilherme Blanco
9b4c50e81e
Final work around entity changeset fix
2016-02-16 05:03:11 +00:00
Guilherme Blanco
b784a04cf7
Fixed only variables should be passed by reference issue
2016-02-16 04:46:34 +00:00
Guilherme Blanco
86cde3a9df
Fixed #5605
2016-02-16 03:21:53 +00:00
Guilherme Blanco
d814ad7234
Merge pull request #5668 from petitchevalroux/many-to-many-criteria-fixes
...
Many to many criteria fixes
2016-02-15 21:07:17 -05:00
jeroendedauw
34dbefaf22
Add missing @throws tags
2016-02-15 15:15:32 +01:00
Jeremy Giberson
dd3f67d862
updated manytomany so it maps field names to column names in criteria ordering
2016-02-11 13:39:31 -07:00
Jeremy Giberson
ae785757a1
Merge branch 'fix-many-many-criteria' of github.com:petitchevalroux/doctrine2 into many-to-many-criteria-fixes
...
Conflicts:
lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php
2016-02-10 20:04:48 -07:00
Jeremy Giberson
0adeade045
merged git@github.com:SammyK/doctrine2.git:many-to-many-order-by-fix
2016-02-10 19:52:03 -07:00
Jeremy Giberson
f0accca99d
Merge branch 'DDC-3719-fix' of github.com:jeanCarloMachado/doctrine2 into many-to-many-criteria-fixes
2016-02-10 19:40:45 -07:00
Patrick Poulain
cfeda903e3
Fix many-to-many matching ignoring offset/limit
2016-02-05 11:14:47 +01:00
Bill Schaller
55d4f515af
Fix issue were identifier operands in /,* arithmetic terms were not checked to see if they're query components
2016-01-08 12:53:05 -05:00
Steve Müller
f9217cf6f2
fix documentation of schema tool's "save mode"
...
fixes #5596
2016-01-08 15:37:19 +01:00
Steve Müller
1697293591
Merge pull request #1563 from rawkode/bugfix/incorrect-rollback-method-name
...
Fixing method name 'rollBack', which was documented as 'rollback'
2016-01-06 11:49:32 +01:00
Bill Schaller
8bde0c8a90
Fix AnnotationDriver, XmlDriver, YamlDriver to properly set DiscriminatorColumn defaults for type and length.
...
Note: Even though the column definition generated for a discriminator column
would eventually default the type to string and length to 255, the docs specify
defaults that should be reflected explicitly in the discriminatorColumn mapping.
2016-01-05 12:32:25 -05:00
Jefersson Nathan
156075682f
Remove unnecessary namespaces imports and usage
2015-12-16 05:45:55 -03:00
oprokidnev
e390dbd5ba
Target entity resolver for DQL
...
Since we have target entity resolver in doctrine this class check is not enought.
To gain interface resolution it is better to add interface check in addition to class_check here.
2015-12-11 21:33:59 +01:00
Marco Pivetta
044b202379
Simplifying getColumnNames
logic (can be an array_map
call)
2015-12-11 20:50:18 +01:00
Jeroen Thora
6dcb97a20e
Fixed many small phpcs issues
2015-12-11 20:30:41 +01:00
Marco Pivetta
3971e8c55b
Merge branch 'hotfix/#1573-merge-associated-versioned-entity'
...
Close #1573
2015-12-11 20:17:05 +01:00
Marco Pivetta
16baa8d60f
#1573 - correcting docblock arguments/description
2015-12-11 20:00:08 +01:00
Marco Pivetta
00718f6bf7
#1496 s/$this/self
2015-12-11 18:27:19 +01:00
Damien Gavard
9b4dadade0
Use @return $this instead of @return static for consistency
2015-12-11 18:22:26 +01:00
Damien Gavard
5687347d60
Fix invalid return type documentation
2015-12-11 18:22:26 +01:00
Damien Gavard
15aafaa11d
Use @return $this instead of return explicitly QueryBuilder
2015-12-11 18:22:26 +01:00
Damien Gavard
8d62aadf55
Fix invalid return type in docblock
2015-12-11 18:22:26 +01:00
Marco Pivetta
9e68a5adc7
Merge pull request #1579 from aschempp/proxy-initialized-cs
...
Reduce code duplication in ProxyFactory::createInitializer
2015-12-11 18:16:53 +01:00
Andreas Schempp
4df7699ced
Reduce code duplication in ProxyFactory::createInitialized
...
The only difference between the ~30 lines in the IF-statement
is that the __wakup method is called on the proxy object.
2015-12-06 14:56:36 +01:00