Fabio B. Silva
1e95110b08
Add missing mapping files
2013-05-17 11:59:28 -03:00
Fabio B. Silva
1d7c72cc06
[DDC-2451] Fix test assert
2013-05-17 11:55:36 -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
Fabio B. Silva
b147c472be
[DDC-2429] Fix xsd definition
2013-05-13 11:04:36 -03: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
07c207081e
Adding failing test to demonstrate DDC-2432
...
Loading proxies with invalid identifiers will currently mark them as initialized regardless of the failure
2013-05-09 21:11:10 +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
Vladislav Vlastovskiy
3997d0df87
Added test complex inner join with indexBy
2013-05-09 03:32:28 +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
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
Asmir Mustafic
34adb16ee8
indexby ddc117 tests
2013-04-29 10:29:58 +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
Adam Prager
bf92a40171
skip test if php 5.3
2013-04-19 14:49:32 +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
27e23faa5a
Accompanying tests for PR #646
2013-04-10 13:07:09 -03:00
Adam Prager
b7b107b08a
moved test entities from sandbox
2013-04-07 16:26:05 +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
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
e54c11e3bb
Add test for postgresql hidden scalar sorting
2013-04-03 17:21:51 +09:00
Asmir Mustafic
3196b0c05a
missing new line
2013-04-02 10:14:24 +02:00
Asmir Mustafic
6fc18e330d
indexby metadata column
2013-04-02 10:04:15 +02:00
Adam Prager
b3414e3c1a
added unit test
2013-03-31 00:47:45 +01:00
Marco Pivetta
57020322cb
Adding failing test for DDC-2359
...
Doctrine\ORM\Mapping\ClassMetadataFactory#wakeupReflection is called twice
2013-03-24 19:40:53 +01:00
Fabio B. Silva
39ea24675d
Fix DDC-2090
2013-03-17 16:59:33 -03: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
b53fffe252
Fix YAML EntityListener definition in tests
2013-03-14 21:18:54 +01:00
Benjamin Eberlei
622ddd8d05
Refix test
2013-03-14 20:12:20 +01:00
Benjamin Eberlei
e128728105
Fix bugs in tests
2013-03-14 20:09:41 +01:00
Stefan Kleff
057e86eb27
Added test based on e468ced00b
2013-03-13 12:29:17 +01:00
Benjamin Eberlei
eca468b9d1
[DDC-2340] Fix bug with dirty collection matching + ordering.
2013-03-12 22:49:30 +01:00
Benjamin Eberlei
dba63c5a61
Merge pull request #579 from BenMorel/cleanup
...
Unit tests: cleanup of outdated / unused / commented out code
2013-03-12 12:00:47 -07: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
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
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
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
Marco Pivetta
350fa4f15b
Applying fix for failing test for DDC-2230
2013-02-23 01:45:40 +01:00
Marco Pivetta
be24439e2f
Adding failing test for DDC-2230
...
Proxies that implement the Doctrine\Common\PropertyChangedListener are getting eagerly
initialized because the UnitOfWork injects itself into them after they are created.
The test currently fails for what described above, and also verifies if the UoW
is correctly injected in the proxy during lazy loading.
2013-02-23 01:44:58 +01:00
Marco Pivetta
d8dd5129e7
Failing test for DDC-2306
...
As of DDC-1734, proxies should have null identifier when the UnitOFWork
refreshes entities and replaces them (marking them as un-managed).
The problem here is that refreshes on entities with same identifier
but different type are still considered same, and the UnitOfWork discards
the proxy instance instead of ignoring it.
2013-02-21 02:21:06 +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
3d9cb9460a
Fix test failing when memcache extension is installed, but memcache server isnt.
2013-02-13 08:46:37 +01:00
Benjamin Morel
35562d3a4d
Unit tests: cleaned up outdated / unused / commented out code.
2013-02-12 15:51:24 +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
a928ce48da
Using composer autoloader for the test suite
2013-02-04 21:30:02 +01:00
Benjamin Eberlei
71a68a5c6f
Merge pull request #423 from FabioBatSilva/DDC-1955
...
DDC-1955 - @EntityListeners
2013-02-02 11:47:46 -08:00
Guilherme Blanco
dea37ed9e8
Merge pull request #554 from beregond/hydrator-fix
...
Fixed ObjectHydrator when namespace alias is given.
2013-02-02 11:18:00 -08:00
Guilherme Blanco
1627fc9596
Merge pull request #563 from FabioBatSilva/DDC-2268
...
DDC-2268 - Regression test
2013-02-02 11:15:14 -08:00
Fabio B. Silva
452e6912b1
DDC-2268 - regression test
2013-02-02 16:57:17 -02:00
Fabio B. Silva
e6d9d1de47
support naming convention for listeners without mapping.
2013-01-29 12:14:53 -02:00
Fabio B. Silva
3f9a4c82b0
Fix typo
2013-01-29 12:14:53 -02:00
Fabio B. Silva
7b0f59ed7c
split override test
2013-01-29 12:14:53 -02:00
Fabio B. Silva
0d0f91a807
move listeners invocation from ClassMetadataInfo to ListenerInvoker
2013-01-29 12:14:53 -02:00
Fabio B. Silva
c60e3e4ba4
remove @LifecycleCallback
2013-01-29 12:14:52 -02:00
Fabio B. Silva
195b639344
change xml driver to use <lifecycle-callback\>
2013-01-29 12:14:52 -02:00
Fabio B. Silva
8495eca1a4
rename test
2013-01-29 12:14:52 -02:00
Fabio B. Silva
a01d6583d3
implements a entity listener resolver
2013-01-29 12:14:52 -02:00
Fabio B. Silva
a265511368
rename subscribers to listeners
2013-01-29 12:14:52 -02:00
Fabio B. Silva
46474bf457
added doctrine-mapping.xsd
2013-01-29 12:14:52 -02:00
Fabio B. Silva
69bfc71b6a
test event listeners lifecycle callback
2013-01-29 12:14:52 -02:00
Fabio B. Silva
256cecbefa
evaluate as lifecycle callback if the listener class is not given.
2013-01-29 12:14:52 -02:00
Fabio B. Silva
fd6f592430
support @LifecycleCallback in @EntityListeners
2013-01-29 12:14:52 -02:00
Fabio B. Silva
7021f002f2
php driver
2013-01-29 12:14:52 -02:00
Fabio B. Silva
415c2a95f2
php static driver
2013-01-29 12:14:52 -02:00
Fabio B. Silva
f0b04375de
yaml driver
2013-01-29 12:14:52 -02:00
Fabio B. Silva
917aa70c97
test invalid class/method
2013-01-29 12:14:52 -02:00
Fabio B. Silva
7e54ae3702
xml driver
2013-01-29 12:14:52 -02:00
Fabio B. Silva
6be7a03b72
fix previous test
2013-01-29 12:14:52 -02:00
Fabio B. Silva
4cfe2294e3
test lifecycle callbacks event args
2013-01-29 12:14:52 -02:00
Fabio B. Silva
c6adcda567
give event to lifecycle callbacks
2013-01-29 12:14:52 -02:00
Fabio B. Silva
dbd0697c2c
test @PostLoad
2013-01-29 12:14:51 -02:00