Guilherme Blanco
2dd73d4def
Kept BC.
2013-07-29 10:46:47 -04:00
Guilherme Blanco
c28b457221
Modified Hydrators to be per-query instances instead of a singleton-like approach.
2013-07-28 20:30:42 -04:00
Marco Pivetta
d7881a1ec2
Merge pull request #733 from Lumbendil/master
...
Update Parser.php
2013-07-24 04:13:12 -07:00
Roger Llopart Pla
9b574ad53b
Update Parser.php
...
Fix the docummentation for Parser::Literal()
2013-07-24 13:07:06 +02:00
Austin Morris
1c8ae50557
do not initialize coll on add()
2013-07-22 18:54:02 -04:00
Austin Morris
6bae2eac29
Initialize coll when using Collection methods inside PersistentCollection
2013-07-22 14:42:03 -04:00
Marco Pivetta
4bc8f7be16
Merge pull request #728 from armetiz/patch-1
...
Color message like the update tools
2013-07-22 08:19:50 -07:00
Thomas Tourlourat
4882ff1ef5
Add info tag around ATTENTION
2013-07-22 17:11:53 +02:00
Nicolas Nutten
eba933bb47
To avoid "SpacingAfterParams" error with PHPCS Symfony2 coding standard
...
Hello,
I added two blank lines in comments two avoid the following error with PHPCS Symfony2 coding standard :
Error Code: SpacingAfterParams
Error Description: Last parameter comment requires a blank new line after it.
2013-07-22 10:56:18 +02:00
Thomas Tourlourat
0c3581a1f8
Color message like the update tools
2013-07-19 11:33:35 +02:00
Guilherme Blanco
fbbb161987
Merge pull request #719 from tristanlins/fix/entity-generator-extensibility
...
Access properties via static:: instead of self::.
2013-07-17 17:18:01 -07:00
Michaël Gallego
3f112db725
Allow to have non-distinct queries
2013-07-09 17:31:30 +02:00
Guilherme Blanco
78fc129614
Merge pull request #632 from Padam87/entgentrait
...
entity generator - ignore trait properties and methods
2013-07-07 12:37:55 -07:00
Tristan Lins
641774630b
Access properties via static:: instead of self::.
...
The properties of EntityGenerator are now protected instead of private.
But this does not make sense until they are accessed with static::.
Otherwise the templates cannot be overwritten within a sub class.
2013-07-05 13:40:57 +02:00
Paul
6aa58d9939
Allow query parameters starting with an underscore
2013-07-04 10:12:36 +02:00
Dave Hulbert
5e700db6d3
Fix grammar in CreateCommand
2013-07-02 16:29:36 +01:00
Dave Hulbert
c57f2c39f6
Fix grammar in DropCommand
2013-07-02 16:28:58 +01:00
Benjamin Eberlei
29d6da0fa0
Merge pull request #703 from shulcsm/patch-1
...
Clear visitedCollections
2013-06-30 01:38:02 -07:00
Sander Marechal
06ed21e883
Remove extra-lazy-get for ManyToMany relation
2013-06-27 14:19:39 +02:00
Sander Marechal
5635fa60a4
Check owning entitiy on extra lazy get with OneToMany relation
2013-06-27 14:17:41 +02:00
Benjamin Eberlei
a91050e7f4
[DDC-2350] Eager Collections are not marked as initialized, leading to multiple queries being executed.
2013-06-25 19:34:12 +02:00
Guilherme Blanco
20e5d98b7b
Merge pull request #640 from denkiryokuhatsuden/patch-1
...
[Paginator]Add hidden field ordering for postgresql
2013-06-24 19:23:36 -07:00
Guilherme Blanco
457036aacb
Merge pull request #702 from FabioBatSilva/DDC-2459
...
[DDC-2459]ANSI compliant quote strategy
2013-06-23 14:26:49 -07:00
Fabio B. Silva
1cff8b4d98
Fix DDC-2519
2013-06-21 16:07:09 -04:00
Fabio B. Silva
a165f63c8c
ANSI compliant quote strategy
2013-06-21 16:05:59 -04:00
Sander Marechal
2879162015
No need to lookup metadata
2013-06-20 14:00:58 +02:00
Sander Marechal
3b92cfac5a
Use find() if the indexBy field is the identifier
2013-06-20 13:45:38 +02:00
Sander Marechal
53c9ffda30
Get rid of variable
2013-06-20 10:20:16 +02:00
Sander Marechal
3555007f08
Return NULL for non-existent keys
...
The load() function already returns just one entity or NULL, so
the current() is not needed and the result can be returned directly.
2013-06-20 10:09:52 +02:00
Sander Marechal
523697d0b6
[DDC-1398] Extra-lazy get for indexed associations
...
If an association is EXTRA_LAZY and has an indexBy, then
you can call get() without loading the entire collection.
2013-06-20 09:29:56 +02:00
shulcsm
3340234785
Clear visitedCollections
...
Visited collections are cleared only in commit(). Commit clears up only if it actually has something to do. Processing large amounts of records without changing them cause visitedCollections to grow without any way of clearing.
2013-06-19 16:34:44 +03:00
Guilherme Blanco
7903a2b513
Merge pull request #695 from doctrine/RepositoryFactory
...
Implemented support for RepositoryFactory.
2013-06-14 09:19:43 -07:00
Guilherme Blanco
52b3fc1fc3
Updated since php doc tag.
2013-06-14 12:07:28 -04:00
Adam Prager
73e2aa54ef
moved php version check
2013-06-14 10:07:05 +02:00
Michaël Perrin
37d7df6ac4
Fix phpDoc syntax in ClassMetadataInfo.php
2013-06-14 11:00:17 +03:00
Guilherme Blanco
3488049c18
Reduced granularity of DefaultRepositoryFactory reference to ObjectRepository instances, in cases where consumers are completely rewrote EntityRepository.
2013-06-13 23:59:08 -04:00
Guilherme Blanco
a66fc03441
Reducing dependency on RepositoryFactory by providing EntityManager as a getRepository argument.
2013-06-13 23:53:53 -04:00
Guilherme Blanco
37e7e841c3
Fixed wrong interface.
2013-06-13 23:31:18 -04:00
Guilherme Blanco
7eb744126b
Implemented support for RepositoryFactory.
2013-06-13 21:47:40 -04:00
Fabio B. Silva
f16c8e3efe
Fix DDC-2478
2013-06-13 16:44:02 -04:00
Guilherme Blanco
6ef48561ba
Merge pull request #688 from sellingsource/master
...
Implement QuoteStrategy on SqlWalker walkRangeVariableDeclaration
2013-06-12 12:03:24 -07:00
Fabio B. Silva
c1e688fc81
drop useless support for associations
2013-06-12 10:30:51 -04:00
Fabio B. Silva
d961028b14
small optimization
2013-06-12 10:30:51 -04:00
Fabio B. Silva
d685f592fe
Fix DDC-2494
2013-06-12 10:30:51 -04:00
Guilherme Blanco
3d86c82a7f
DDC-2476 Better approach for reverse engineer. Some refactoring done to driver.
2013-06-12 02:00:36 -04:00
Guilherme Blanco
0d834d0bd4
DDC-2489 Added missing semicolon when dump-sql on schema update.
2013-06-12 00:31:25 -04:00
Dustin Thomson
529064aff2
Modified identity function to work with joined inheritance tables.
...
Added regression tests
2013-06-11 18:09:49 -06:00
Fabio B. Silva
710d0d1109
Fix DDC-1995
2013-06-07 17:24:05 -04:00
John Brown
4ef043fc3b
updating sql walker to use quote strategy in joins
2013-06-07 08:56:58 -07:00
John Brown
afb9c829e2
updating sql walker to use quote strategy in joins
2013-06-07 08:49:49 -07:00
John Brown
77b905eaa8
Implement QuoteStrategy on SqlWalker walkRangeVariableDeclaration
...
Based on:
http://www.doctrine-project.org/jira/browse/DDC-1845
cb72219b11
2013-06-06 15:08:22 -07:00
Fabio B. Silva
27511374ec
Fix DDC-2475
2013-06-04 23:50:43 -04:00
Grégoire Paris
a986fe013e
Explicitely state what the problem is
...
People like me think the problem is that there is no association
mapping, when the problem in fact could be that there also is a field
mapping on the property.
This message makes it clearer why we are getting an error message.
2013-06-03 12:07:08 +02:00
Benjamin Eberlei
f269ecc3ac
Bump dev version to 2.4.0
2013-05-27 21:47:16 +02:00
Benjamin Eberlei
6bc18402e2
Release 2.4.0-RC1
2013-05-27 21:47:16 +02:00
Alexander
66a842c143
[DDC-2471] Fix EQ/NEQ null handling of criteria
2013-05-26 09:04:19 +02:00
Benjamin Eberlei
20b5ab26e7
Merge pull request #669 from hason/many_to_many
...
Fixed generating column names for self referencing entity.
2013-05-25 22:16:48 -07:00
Gusakov Nikita
6bb3184dbf
fix bc
2013-05-18 02:40:18 +04:00
Gusakov Nikita
4c1869dca0
ready
2013-05-18 02:09:07 +04:00
Fabio B. Silva
f92214997f
[DDC-2435] Fix column name with numbers and non alphanumeric characters.
2013-05-17 13:02:46 -03:00
Fabio B. Silva
4d6cef1ff6
[DDC-2451] Fix entity listeners serialization
2013-05-17 11:42:11 -03:00
Martin Hasoň
bef5b585cb
Fixed generating join column names for self referencing entity.
2013-05-17 16:28:45 +02:00
Benjamin Eberlei
eb1a162cbc
Fix regression in DDC-2430.
2013-05-10 23:31:27 +02:00
Benjamin Eberlei
bf9673203c
Merge pull request #639 from goetas/indexby-metadata
...
Added abillity to use metacolumn as indexBy
2013-05-09 23:53:26 -07:00
Marco Pivetta
22c9f6ebec
applying required fixes for DDC-2432
2013-05-09 21:14:58 +02:00
Benjamin Eberlei
b53f4fd4cc
[DDC-2280] length attribute in <id> was not converted.
2013-05-09 18:15:41 +02:00
Benjamin Eberlei
1a0adecf29
[DDC-2335] Add note about filtering schema by regexp expression to relevant commands help output.
2013-05-09 16:24:19 +02:00
Benjamin Eberlei
6d5afb18bc
[DDC-2430] Prevent Criteria queries using the ID of an assocation on PersistentCollections, as the in-memory ArrayCollection does not work with this kind of query. Attention this is a BC-BREAK, that is necessary to fix potentially very hard to debug bugs. Therefore it is not merged back into 2.3
2013-05-09 13:24:36 +02:00
Benjamin Eberlei
7220c3c125
[DDC-2387] Fix DatabaseDriver not working with combinations of composite/association keys.
2013-05-09 12:10:37 +02:00
Benjamin Eberlei
86277def7e
Merge branch 'DDC-2437'
2013-05-09 11:03:21 +02:00
Benjamin Eberlei
e3b8ce7737
[DDC-2423] Fixed bug with EntityGenerator not generating fetch="" attribute in association annotations.
2013-05-09 10:55:12 +02:00
Benjamin Eberlei
acbafd081b
Add documentation to EntityManager about instantiation, decoration over inheritance, and some generic introduction.
2013-05-09 10:23:12 +02:00
Vladislav Vlastovskiy
33888f1b08
Swapped places indexBy and condition in accordance with EBNF
2013-05-09 03:30:48 +04:00
Benjamin Eberlei
c8bcdb4b61
Merge pull request #524 from lstrojny/feature/entity-manager-decorator
...
EntityManagerDecorator base class as an extension point for EntityManager
2013-05-04 06:02:39 -07:00
Benjamin Eberlei
8e8560b276
Merge pull request #537 from Powerhamster/joined-composite-keys
...
fixed problems with joined inheritance and composite keys
2013-05-04 05:59:02 -07:00
Benjamin Eberlei
5e19e1bed3
[DDC-2267] Allow EntityManager#flush($entity) to be called on entities scheduled for removal.
2013-05-04 13:38:30 +02:00
Benjamin Eberlei
6d02c7e1a5
[DDC-2136] Fix exporting to YAML and XML with assocation keys.
2013-05-01 23:10:13 +02:00
Benjamin Eberlei
0864ab8ada
[DDC-1998] Pass types to Connection#delete() to allow custom conversions to happen.
2013-05-01 20:30:45 +02:00
Benjamin Eberlei
131164b7f6
[DDC-1984] Throw exception if passing null into UnitOfWork#lock() - which can happen when EntityManager#find() tries to lock entity that was just deleted by another process.
2013-05-01 19:39:21 +02:00
Benjamin Eberlei
640a8e58c7
[DDC-2106] Fix entity as parameter value when its managed but not yet with identifier.
2013-05-01 18:46:41 +02:00
Benjamin Eberlei
6505c96ec4
Simplify condition of previous commit ( 5cdc73e
)
2013-05-01 10:58:44 +02:00
Benjamin Eberlei
760aaa67c4
Merge pull request #655 from FabioBatSilva/DDC-2409
...
[DDC-2409] Fix merge association STATE_NEW
2013-05-01 01:49:25 -07:00
Benjamin Eberlei
1f08acb576
[DBAL-483] Pass default values to DBAL mapping layer correctly to fix default comparision bug.
2013-05-01 10:42:28 +02:00
Fabio B. Silva
5cdc73e13b
Fix DDC-2409
2013-04-28 16:54:44 -03:00
Fabio B. Silva
7c2da2d5b8
Fix DDC-2415
2013-04-26 16:11:04 -03:00
EuKov
99ec4dc72c
Fixed typo in SQLFilter (use statement ClassMetadata)
2013-04-23 20:46:19 +03:00
Benjamin Eberlei
92b41e017a
[DDC-2407] Fix missing support for UUID and CUSTOM id generators in Exporter
2013-04-20 10:25:36 +02:00
Benjamin Eberlei
52b2e066c5
Merge pull request #611 from stefankleff/fix-eagerloading
...
Fixed typo in hints. Caused slow loading of eager entities.
2013-04-14 00:43:42 -07:00
Raymond Kolbe
4bafcc5b31
Fix Oracle subquery ordering
...
See http://www.doctrine-project.org/jira/browse/DDC-1800 and http://www.doctrine-project.org/jira/browse/DDC-1958#comment-19969
2013-04-09 17:30:54 -03:00
Raymond Kolbe
b8b7afe576
Fix Oracle subquery ordering lost bug
...
See http://www.doctrine-project.org/jira/browse/DDC-1800 for a full description.
2013-04-09 17:00:06 -03:00
Stefan Kleff
e561f47cb2
Added constant
2013-04-08 11:27:22 +02:00
Benjamin Eberlei
cef20890dc
Merge pull request #616 from FabioBatSilva/DDC-2252
...
[DDC-2252] Fix delete many-to-many composite key
2013-04-06 10:37:16 -07:00
Benjamin Eberlei
fe238d03c8
Merge pull request #618 from FabioBatSilva/DDC-2188
...
[DDC-2188] Fix arithmetic priority
2013-04-06 07:56:36 -07:00
Pascal Borreli
30b050b44c
Fixed typos
2013-04-06 14:31:27 +00:00
Benjamin Eberlei
64b2ecfefc
[DDC-2224] Rewrite instanceof feature with parameter needle ClassMetadata breaks caching of queries.
2013-04-04 20:22:48 +02:00
Adam Prager
3b7b457d35
minor fixes
2013-04-04 20:07:21 +02:00
denkiryokuhatsuden
7af84e79e5
Fixed postgresql hidden scalar sort
2013-04-03 17:22:31 +09:00
denkiryokuhatsuden
786d904328
Revert "Add hidden field ordering for postgresql"
...
This reverts commit 3e8796f781
.
2013-04-03 17:14:31 +09:00
denkiryokuhatsuden
3e8796f781
Add hidden field ordering for postgresql
...
In postgresql environment, when some hidden fields are used in orderBy clause,
they're not property added because $rsm->scalarMappings don't have information about them.
2013-04-02 18:54:55 +09:00
Asmir Mustafic
6fc18e330d
indexby metadata column
2013-04-02 10:04:15 +02:00
Adam Prager
937ba6385e
fixed code duplication issue
2013-03-31 00:47:24 +01:00
Adam Prager
9797177193
check if ReflectionClass::getTraits() method exists
2013-03-27 02:48:35 +01:00
Adam Prager
8898c91dfc
only check for traits when class exists
2013-03-26 21:28:09 +01:00
Adam Prager
8e3e2e770a
Revert "only use already existing reflections"
...
This reverts commit bb5bdcf0f4
.
2013-03-26 21:17:59 +01:00
Adam Prager
bb5bdcf0f4
only use already existing reflections
2013-03-26 21:14:52 +01:00
Adam Prager
521276f1ed
entity generator - ignore trait properties and methods
2013-03-26 20:52:57 +01:00
Marco Pivetta
7afe5af73a
Fix for DDC-2359
2013-03-24 19:42:50 +01:00
Jan Hruban
3866472459
Import EntityManager in ConsoleRunner
2013-03-21 15:49:00 +01:00
Fabio B. Silva
39ea24675d
Fix DDC-2090
2013-03-17 16:59:33 -03:00
Benjamin Eberlei
a7d764f6c0
Moved tools to Advanced topic, included simple setting up tools in Installation. Reworked CLI tool to print a template when no cli-config.php is defined.
2013-03-17 12:16:42 +01:00
Fabio B. Silva
685c96a1b9
Fix arithmetic priority
2013-03-16 14:33:19 -03:00
Fabio B. Silva
1effd38043
Fix DDC-2252
2013-03-16 01:15:54 -03:00
Benjamin Eberlei
559303430a
[DDC-1666] Fix bug where orphan removal on one-to-one associations lead to unique constraint errors when replacing an entity with a new one.
2013-03-14 23:41:31 +01:00
Benjamin Eberlei
d0419782bd
[DDC-2300] Fix version xml mapping and serialization of ClassMetadata.
2013-03-14 23:20:23 +01:00
Benjamin Eberlei
4982e2b6b0
Merge pull request #593 from norzechowicz/hydrator-fix
...
Fix SimpleObjectHydrator behavior when column not exists in fieldMappings, relationMappings and metaMappings
2013-03-14 14:58:52 -07:00
Benjamin Eberlei
eca468b9d1
[DDC-2340] Fix bug with dirty collection matching + ordering.
2013-03-12 22:49:30 +01:00
Rajesh Sharma
4841a068be
[DDC-2304] accept more than 2 parameters in CONCAT function
...
- Tested and parser validates at least 2 parameters given
- test added for CONCAT function and indentation fixed
- calling getConcatExpression using call_user_func_array as number of arguments is not known removing dependency to patch DBAL
- maintaining backward compatibility
2013-03-12 19:59:45 +01:00
Benjamin Eberlei
fc86a31c10
Merge pull request #591 from Aitboudad/master
...
Remove dead code
2013-03-12 11:52:23 -07:00
Benjamin Eberlei
ba4705176e
Merge pull request #601 from jankramer/add-contains-comparison
...
Add 'contains' comparison
2013-03-12 11:38:18 -07:00
Jean-Guilhem Rouel
8b8d1a5aaa
Don't add empty expression to another one
2013-03-12 19:17:11 +01:00
Benjamin Eberlei
3ba0562006
Merge branch 'GH-572'
2013-03-12 19:04:27 +01:00
Norbert Orzechowicz
6a69b4700c
[DDC-2282] Fix pagination problem with SQL Server.
...
ORDER BY removed from all count queries when on SQL Server
Fixed SQLServer ORDER BY problem in paginator CountOutputWalker
Added test to check query with ORDER BY and SQLServerPlatform
2013-03-12 19:03:27 +01:00
Stefan Kleff
d937d1fc82
Fixed typo in hints. Caused slow loading of eager entities.
2013-03-12 16:17:14 +01:00
Pascal Borreli
87e06993d6
Fixed typo
2013-03-11 00:31:50 +00:00
Pascal Borreli
a2cd0f5804
Fixed typos
2013-03-11 00:08:58 +00:00
Jan Kramer
760623346c
Added 'contains' comparison
2013-03-07 13:32:56 +01:00
Lars Strojny
acc8b61cd1
Adding EntityManagerDecorator base class as an extension point for EntityManager
2013-03-06 23:30:47 +01:00
MDrollette
1846f5845c
alias the proxy class on import to avoid "already exists" error
2013-03-01 11:58:51 -06:00
Vladislav Veselinov
30fd22a260
Use inflector for add/remove methods
2013-02-28 21:05:41 +02:00
Norbert Orzechowicz
f9519479fc
Fix SimpleObjectHydrator behavior when column not exists in fieldMappings, relationMappings and metaMappings
2013-02-28 10:10:28 +01:00
Guilherme Blanco
d5dd7d6f8a
Merge pull request #589 from Ocramius/hotfix/DDC-2230
...
Hotfix for DDC-2230
2013-02-25 21:59:04 -08:00
Guilherme Blanco
32c220497c
Merge pull request #585 from Ocramius/hotfix/DDC-2306
...
Hotfix/DDC-2306
2013-02-25 21:55:44 -08:00
Abdellatif Ait boudad
5206566707
Remove dead code
2013-02-26 00:02:34 +00:00
Marco Pivetta
350fa4f15b
Applying fix for failing test for DDC-2230
2013-02-23 01:45:40 +01:00
Christophe Coevoet
16b407f535
Fixed the license and the added version
2013-02-22 17:57:50 +01:00
Joshua Johnson
b55d78e119
Fix EntityManager doc
2013-02-21 17:27:55 -05:00
Benjamin Eberlei
8fce78fbfb
[DDC-2310] Fix regression introduced in SQL Server lock handling.
2013-02-21 19:02:21 +01:00
Marco Pivetta
a5ece5063a
Fixing DDC-2306
2013-02-21 02:24:48 +01:00
Benjamin Eberlei
805bb5ff9f
Remove mentions of PEAR installation method, remove code.
2013-02-15 01:04:29 +01:00
Marco Pivetta
a58d4ae462
Cleaning up logic of the proxy factory by moving closure generation to own private methods
2013-02-14 10:52:13 +01:00
Marco Pivetta
271f5cf033
Adding fix and tests for DDC-1734
2013-02-14 09:57:12 +01:00
Marco Pivetta
8272ffd23f
Proxy generation as of doctrine/common#168 - DCOM-96
2013-02-14 09:57:12 +01:00
Benjamin Eberlei
35fda90473
Merge pull request #570 from Ocramius/cleanup/submodules-removal
...
Deprecation of PEAR/GIT/TAR autoloading
2013-02-14 00:55:08 -08:00
Benjamin Eberlei
ce594fb152
[DDC-2256] Cleanup patch, move dependency on EntityManager out of ResultSetMapping and let AbstractQuery perform the translation.
2013-02-13 09:05:35 +01:00
Fabio B. Silva
719031f2ef
Merge pull request #569 from Ocramius/hotfix/pre-flush-event-args-params
...
Hotfix/pre flush event args params
2013-02-12 15:39:40 -08:00
Benjamin Morel
cba1c8295c
Fixed wrong return types in documentation.
2013-02-12 11:49:44 +00:00
Alexander
1a163cd48d
[DDC-2019] Add support for expression in QueryBuilder#addOrderBy()
2013-02-09 22:40:34 +01:00
Alexander
9bf501dd25
Revert "allowed to pass filter objects to the configurator"
...
This reverts commit a9b4debe37
. See the
discussion on the original PR:
https://github.com/doctrine/doctrine2/pull/434
Conflicts:
lib/Doctrine/ORM/Configuration.php
2013-02-09 20:28:52 +01:00
Marco Pivetta
673323fc67
Adding warnings about deprecation of GIT, TAR and PEAR autoloading
2013-02-04 23:30:02 +01:00
Marco Pivetta
f281dbbf54
Fixing incorrect constructor params for PreFlushEventArgs
2013-02-04 20:46:51 +01:00