fabios
22e3a76327
Fix non initialized association proxy
2013-12-20 10:39:03 -05:00
Benjamin Eberlei
f0546455d5
Remove left over ElementCollection code.
2013-12-20 15:01:10 +01:00
Michaël Perrin
1032a16db2
Simpler way to handle Collection parameters in DQL queries (refs #DDC-2319)
2013-12-17 11:37:17 +01:00
Benjamin Eberlei
ad9366a1fc
Merge pull request #871 from elmariachi111/patch-1
...
XCache cannot be flushed on the CLI -> for pretty much the same reason as APC
2013-12-16 15:47:09 -08:00
fabios
4e0e1b8061
CS/Typo Fixes
2013-12-16 15:55:54 -05:00
fabios
0a66a2bc09
CS/Doc Fixes
2013-12-16 11:05:05 -05:00
fabios
71903c28a8
Region cache clear commands
2013-12-16 11:05:05 -05:00
fabios
fb98277783
Fix docs
2013-12-16 11:05:05 -05:00
fabios
d135e402bb
handle update/delete queries
2013-12-16 11:05:05 -05:00
Fabio B. Silva
61bff7d5f6
Fix CS and update docs
2013-12-16 11:05:04 -05:00
Fabio B. Silva
1438a59c00
Fix persister query cache invalidation
2013-12-16 11:05:04 -05:00
fabios
1bfa8f0fc3
Extract cache config
2013-12-16 11:05:04 -05:00
Fabio B. Silva
3140593e9b
Second level cache
2013-12-16 11:05:04 -05:00
Benjamin Eberlei
86ae6f18ab
Merge branch 'DDC-2645'
2013-12-15 23:31:49 +01:00
Pouyan Savoli
a5b7069fd7
[DDC-2645] Apply patch to fix issue
2013-12-15 23:31:35 +01:00
Aaron Muylaert
3cc630798b
Fix DDC-1787.
...
Credit goes to Jack van Galen for fixing this issue.
Fix for JoinedSubclassPersister, multiple inserts with versioning throws
an optimistic locking exception.
2013-12-14 13:50:46 +01:00
Stefan A
eded05d415
XCache cannot be cleared on CLI (like APC)
2013-12-10 19:51:41 +01:00
Stefan A
88a56ee8f8
XCache cannot be cleared on CLI (like APC)
2013-12-10 19:51:02 +01:00
Stefan A
53fbb0b2d1
XCache cannot be cleared on CLI (like APC)
2013-12-10 19:48:30 +01:00
Luís Otávio Cobucci Oblonczyk
6d58824ac5
Use docblox from EntityManagerInterface
2013-12-10 12:09:36 -02:00
Luís Otávio Cobucci Oblonczyk
67135e5d6f
Fixing FQCN on docblox
2013-12-10 12:08:53 -02:00
Luís Otávio Cobucci Oblonczyk
877ba9bf17
Documenting interface methods (based on entity manager)
2013-12-10 11:18:27 -02:00
Guilherme Blanco
0e3c57dbd3
Merge pull request #849 from bsahlhof/master
...
Error with Same Field, Multiple Values, Criteria and QueryBuilder
2013-11-25 21:20:14 -08:00
fabios
9e3ad91225
Version 2.5.0-DEV
2013-11-19 11:50:43 -05:00
Brad Sahlhoff
96fb0d7e14
Changed logic to allow joining games, and becoming friends
...
Added Spacing
2013-11-19 11:09:23 -05:00
fabios
e69cd37226
Event listener to programmatically attach entity listeners.
2013-11-18 15:03:00 -05:00
Brad Sahlhoff
c2997b3961
Add ability to test same parameter name for multiple values.
2013-11-18 10:36:46 -05:00
flack
ffd858b238
Merge remote-tracking branch 'upstream/master' into avoid-update-on-delete
2013-11-17 11:36:06 +01:00
flack
9807718100
Also skip entities scheduled for deletion when committing multiple entities
2013-11-17 11:31:21 +01:00
Fabio B. Silva
3529cd4282
Merge pull request #797 from peterkokot/patch-1
...
CS fixes
2013-11-16 10:52:09 -08:00
David Stensland
e6be52af3a
Teach orm:validate-schema to --skip-mapping and --skip-sync
...
Use --skip-mapping to not check if the current mapping informaiton
is valid or not.
Use --skip-sync to not check if the database schema is in line with
the current schema mapping.
2013-11-11 18:12:28 -05:00
flack
9016a5a854
don't compute changeset for entities that are going to be deleted
2013-11-12 00:11:50 +01:00
Matthieu Napoli
e018bb83f0
[DDC-2775] Bugfix
2013-11-04 12:42:23 +01:00
Sander Marechal
35a62e9a05
Add rootAlias to Criteria where clauses
2013-11-01 13:43:03 +01:00
Sander Marechal
202039e853
Set rootAlias outside loop
2013-11-01 13:19:33 +01:00
Ronan Guilloux
48d078a856
no-backup instead of nobackup
2013-10-31 12:25:43 +01:00
Ronan Guilloux
5c01e8e99e
Generate-Entities-Console-Command: Adding an 'avoid creating backup files' flag
2013-10-31 12:00:32 +01:00
Sander Marechal
b6f8d53ff1
[DDC-2764] Prefix criteria orderBy with rootAlias
2013-10-29 11:11:46 +01:00
Benjamin Eberlei
9a3298347c
[DDC-2759] Fix regression in ArrayHydrator introduced in DDC-1884 at SHA c7b4c9bf0f
2013-10-26 11:16:07 +02:00
Brikou CARRE
84b980227f
s/PostgreSQLPlatform/PostgreSqlPlatform/
2013-10-21 09:44:48 +02:00
Marco Pivetta
a96fe8770c
Merge pull request #815 from nicolas-bastien/patch-2
...
Remove unused use statement
2013-10-18 03:46:09 -07:00
Adam Pancutt
553086ae3d
Removed check for instantiated options array
2013-10-15 13:17:07 +01:00
Adam Pancutt
db5274113a
Code style fix
2013-10-15 12:49:34 +01:00
Adam Pancutt
25342b706d
Added support for field options to FieldBuilder
2013-10-15 12:37:06 +01:00
Vincent BOURDEIX
5506d7adce
Fixes a Fatal Error when using a subexpression in parenthesis
...
When some dql contains a subselect with expression in parenthesis, the
expression of the $simpleSelectExpression parameter given to
walkSimpleSelectExpression is an instance of AST\ParenthesisExpression.
Before this commit, this case defaulted to
$this->walkEntityIdentificationVariable($expr) where $expr is supposed
to be a string. A fatal error was then yielded.
2013-10-14 15:04:52 +02:00
Guilherme Blanco
bb63058410
Merge pull request #780 from terite/DDC-2655
...
[DDC-2655] Don't let getOneOrNullResult throw NoResultException
2013-10-11 13:43:27 -07:00
Guilherme Blanco
be81b46d8e
Merge pull request #791 from myclabs/CriteriaContains
...
Implemented "contains" operator for Criteria expressions
2013-10-11 06:33:40 -07:00
Eduardo
aabb34f853
Options not respected for ID Fields in XML Mapping Driver
...
Same bug of the YAML driver, see: http://www.doctrine-project.org/jira/browse/DDC-2661
2013-10-09 22:40:29 +02:00
David Stensland
089006927e
[DDC-2655] Don't let getOneOrNullResult throw NoResultException
2013-10-09 11:38:33 -04:00
Nicolas Bastien
33ddb9c0ca
Remove unused use statement
2013-10-07 15:58:41 +02:00
flip111
62ae8dc81e
Update SingleScalarHydrator error message
...
bummed into this one. Now more developer friendly :)
2013-10-02 14:12:35 +02:00
Benjamin Eberlei
fc53bc8909
Fix some LGPL occurances to MIT
2013-10-02 12:07:37 +02:00
Guilherme Blanco
2c4c26c5d6
Merge pull request #801 from flip111/patch-4
...
Update SqlWalker.php fixed wrong GROUP BY clause on SQL Server platform
2013-10-01 08:21:20 -07:00
flip111
228a501014
Made the code prettier :)
2013-10-01 16:53:53 +02:00
Guilherme Blanco
4051d0da86
Merge pull request #807 from janbster/fix-optimisticlock
...
Fix for OptimisticLockingException
2013-10-01 07:41:57 -07:00
jan brunnert
f64d6695ce
Removed unnecessary is_object() check
2013-10-01 13:00:37 +02:00
Guilherme Blanco
d8335eee7b
Merge pull request #793 from flip111/patch-2
...
Improved error messages in Paginator: LimitSubqueryOutputWalker
2013-09-30 11:07:49 -07:00
jan brunnert
a4e3921090
When the OptimisticLockingException is generated with the static function lockFailedVersionMismatch and the passed parameters are DateTime instances, the exception could not be thrown because the DateTime object is not implicitly converted to a string.
2013-09-30 11:32:46 +02:00
flip111
72ae7f5497
Changed GroupBy alias to real column name for all platforms and adjusted failing test accordingly. Has fallback in cases where real column name is not possible (example: Doctrine\Tests\ORM\Query\SelectSqlGenerationTest::testGroupBySupportsIdentificationVariable)
2013-09-30 11:08:42 +02:00
Diego Mazzaro
bd0e0c3fcf
[bugfix] if BIGINT or SMALLINT version field was not incremented.
...
Made version field accepted type coherent between ClassMetadataInfo and BasicEntityPersister
2013-09-29 16:17:10 +02:00
Cas
1fda797c8f
Appended newline to (newly) generated files for PSR2 compatibility
...
Appended newline to (newly) generated files for PSR2 compatibility
Additionally, slightly improved styling of concatenating return value
2013-09-28 17:47:35 +02:00
Benjamin Eberlei
008187982d
Merge pull request #792 from FabioBatSilva/DDC-2668
...
[DDC-2668] Fix trim leading zero string
2013-09-26 14:23:07 -07:00
Kristian Mide
0326731348
Respect unsigned fields when tables get converted to entities.
...
This is working on our mysql setup, however i have no idea of the consequences of this change when using other RDBMSes.
2013-09-26 14:41:06 +02:00
flip111
76fda9562c
Update SqlWalker.php fixed wrong GROUP BY clause on SQL Server platform
...
Without this patch a query would like like:
```
SELECT c0_.Country AS sclr0
FROM Continent c0_ WITH (NOLOCK)
WHERE c0_.Country = 38
GROUP BY sclr0
```
Using the column alias in the GROUP BY clause. However this is not allowed on SQL Server. References:
1. http://stackoverflow.com/a/3841804
2. http://technet.microsoft.com/en-us/library/ms189499.aspx (Logical Processing Order of the SELECT statement)
The correct query should be:
```
SELECT c0_.Country AS sclr0
FROM Continent c0_ WITH (NOLOCK)
WHERE c0_.Country = 38
GROUP BY c0_.Country
```
2013-09-26 14:11:56 +02:00
Alex Pogodin
a75d73b889
Identifier can be empty for MappedSuperclasses
...
When MappedSuperclass is inspected without identifier column been assigned, always return false. Solves "Undefined offset" notice.
2013-09-22 17:19:51 +03:00
Peter Kokot
dca09148ca
CS fixes
2013-09-22 02:12:30 +02:00
Stefan Kleff
1ec5632a18
Multiple invokation of listeners on PreFlush event
...
Only lifecycle callbacks and entity listeners should be triggered here. The preFlush listener event is already triggered at the beginning of commit()
2013-09-19 12:13:12 +02:00
flip111
a18aba1bb6
Improved error messages in Paginator: LimitSubqueryOutputWalker
...
The already existing follow-up check throwing "Not all identifier properties can be found in the ResultSetMapping: %s" is a much more technical description.
If $sqlIdentifier is empty (count 0) it can be concluded that there are no mapped results. An alternative error message could thus be "The Paginator does not support queries without mapped results." (line 153).
Possibly '!=' on line 154 could be replaced by '>' because i think this is the only situation that can occur. But since i don't know this for sure, i left it like i found it.
Didn't use elseif in this commit as per Stof his suggestion.
2013-09-17 21:01:09 +02:00
flip111
b803f06c8f
Improved error messages in Paginator: LimitSubqueryOutputWalker
...
The already existing follow-up check throwing "Not all identifier properties can be found in the ResultSetMapping: %s" is a much more technical description.
If $sqlIdentifier is empty (count 0) it can be concluded that there are no mapped results. An alternative error message could thus be "The Paginator does not support queries without mapped results." (line 153).
Possibly '!=' on line 154 could be replaced by '>' because i think this is the only situation that can occur. But since i don't know this for sure, i left it like i found it.
2013-09-17 15:07:08 +02:00
Fabio B. Silva
689da2f36b
[DDC-2668] Fix trim leading zero string
2013-09-16 21:36:19 -04:00
Matthieu Napoli
6f538c509c
Implemented "contains" operator for Criteria expressions
2013-09-16 14:56:04 +02:00
javer
64a0161935
HHVM compatibility: func_get_args
...
All func_get_args() calls have been moved to the top of the methods
because HHVM doesn't keep a copy of the original args for performance
reasons.
See facebook/hiphop-php#1027 for details.
2013-09-15 20:57:30 +03:00
Benjamin Eberlei
b6e624b6bf
Delete some very old, leftover code.
2013-09-11 22:43:38 +02:00
Matthieu Napoli
8875462241
#DDC-2664 Improving and fixing documentation for new Proxy factory flags usage as of DCOM-210
2013-09-09 11:30:18 +02:00
Benjamin Eberlei
4a50493ab7
[DDC-2608][DDC-2662] Fix SequenceGenerator requiring "sequenceName" and now throw exception. Fix a bug in quoting the sequenceName.
2013-09-08 15:59:58 +02:00
Benjamin Eberlei
5c2157219d
[DDC-2660] Fix error with NativeSQL, ResultSetMappingBuilder and Associations as Primary Key.
2013-09-08 14:38:59 +02:00
Benjamin Eberlei
3719a6f2f2
[DDC-2661] Fix bug in YamlDriver not passing options from id to mapField()
2013-09-08 10:37:13 +02:00
Maks Feltrin
f98dfc4758
DO NOT OVERRIDE CUSTOM TREE WALKERS IN getIterator()
2013-08-29 08:36:39 +02:00
Guilherme Blanco
fc7719d5fa
Merge pull request #771 from caponica/cqb-indexby
...
Added indexBy option to createQueryBuilder
2013-08-28 20:15:55 -07:00
Christian Morgan
b0513a7517
Added indexBy option to createQueryBuilder
...
Added way to access the underlying QueryBuilder#from() method's 'indexBy' parameter when using EntityRepository#createQueryBuilder()
2013-08-28 22:35:29 +01:00
Attila Fulop
5669aaf4a3
Fix for entity generator discriminator column
2013-08-28 18:26:16 +03:00
Guilherme Blanco
09d51f9df5
Fixing missing table aliases when using Many2Many persister.
2013-08-21 23:39:40 -04:00
Adam Prager
b041c22814
Entity generator - trait in parent class
2013-08-20 12:15:17 +02:00
Guilherme Blanco
cc83ac6ce8
Centralize InputParameter SQL generation.
2013-08-19 00:33:45 -04:00
Guilherme Blanco
43fc8bafa7
DDC-1858 Added missing support to ResultVariable in LikeExpression.
2013-08-18 23:52:32 -04:00
Guilherme Blanco
605c32dbb3
Merge pull request #758 from doctrine/DDC-2235
...
Fixed DDC-2235.
2013-08-15 21:36:22 -07:00
Guilherme Blanco
f674445486
Fixed DDC-2235.
2013-08-16 00:07:06 -04:00
Douglas Greenshields
494ab1fc2b
corrected English grammar in docblocks
2013-08-13 20:45:04 +01:00
Guilherme Blanco
7f1c1d2b4a
Fixed DDC-2506 by manually updating code. Closes PR #708 .
2013-08-13 01:07:34 -04:00
Dustin Thomson
27bae51fa0
Modified executeInserts method in JoinedSubclassPersister to only check for the presence of columns in a composite primary key
2013-08-11 19:41:10 -06:00
Roger Llopart Pla
1bc6140394
Added docblock.
2013-08-10 16:58:07 +02:00
Roger Llopart Pla
7f1becf283
Appending the Paginator tree walker hint, instead of removing all the other hints.
2013-08-10 16:58:07 +02:00
Benjamin Eberlei
95af021ed9
Merge pull request #737 from Koc/fix-schema-validator-master
...
Skip not mapped public properties in SchemaValidator
2013-08-10 07:27:45 -07:00
Benjamin Eberlei
610e18949b
Merge pull request #744 from jbruni/patch-1
...
Corrected PHP type for "decimal" mapping type
2013-08-10 07:23:50 -07:00
Konstantin.Myakshin
3c1fd9a3a9
Skip not mapped public properties in SchemaValidator
2013-08-07 01:18:15 +03:00
amakhov
d8fcdc0c54
Add hour to DATE_ADD and DATE_SUB. Excepcion message fix
2013-08-06 12:40:30 +04:00
amakhov
dd975fe53d
Add hour to DATE_ADD and DATE_SUB
2013-08-06 12:20:22 +04:00
Guilherme Blanco
354d7050dc
Merge pull request #720 from bakura10/fix-paginator
...
Allow to have non-distinct queries
2013-08-05 20:59:12 -07:00
Guilherme Blanco
e0fd377828
Removed ticket that was breaking the build. DDC-2524 is a circular dependency that is impossible to be fixed with our current codebase.
2013-08-03 19:03:10 -04:00
Guilherme Blanco
d9c1782a4f
Properly fixed DDC-1858. Added support for ResultVariable in NullComparisons while using HavingClause.
2013-08-03 17:38:55 -04:00