Johannes Schmitt
87b4155665
adds test for ResultSetMappingBuilder restriction
2014-01-04 18:06:16 +01:00
Johannes Schmitt
4f585a3d63
Merge branch 'master' of github.com:doctrine/doctrine2 into ValueObjects
...
Conflicts:
UPGRADE.md
lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php
2014-01-04 17:52:32 +01:00
Benjamin Eberlei
e91ed74b25
[DDC-2775] cleanup test.
2014-01-02 23:11:35 +01:00
Benjamin Eberlei
17809abd29
Merge pull request #837 from mnapoli/DDC2775
...
DDC-2775 Tests and fix
2014-01-02 14:07:14 -08:00
Benjamin Eberlei
ea84cfbdd1
Merge pull request #845 from flack/avoid-update-on-delete
...
Don't compute changeset for entities that are going to be deleted
2014-01-02 13:59:25 -08:00
Benjamin Eberlei
7a4a46a95c
[GH-855] fix CS
2014-01-02 22:50:36 +01:00
ptarjan
27c9074b71
don't rely on gc_collect_cycles for HHVM
2014-01-02 22:50:36 +01:00
Benjamin Eberlei
3a8aaea14a
Merge pull request #794 from stefankleff/patch-1
...
Multiple invokation of listeners on PreFlush event
2014-01-02 13:16:21 -08:00
Steve Müller
337857dc8a
add general IDENTITY generator type support for sequence emulating platforms
2013-12-29 05:55:16 +01:00
Matthieu Napoli
c9791fe97f
Inlined the model for the DCC2775 test case inside the test class
2013-12-23 09:55:10 +01:00
fabios
cf4c805427
Fix cache misses using one-to-one inverse side
2013-12-20 15:37:07 -05:00
fabios
22e3a76327
Fix non initialized association proxy
2013-12-20 10:39:03 -05: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
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
Matthieu Napoli
602c3be3fc
Cleaned up tests for DDC-2775
2013-12-14 19:57:53 +01:00
Aaron Muylaert
aa5df1dbac
Create failing test for DDC-2645.
...
Merge not dealing correctly with composite primary keys.
2013-12-14 15:59:10 +01:00
Aaron Muylaert
600af3e617
Add failing test for DDC-1787.
...
Using joined table inheritance, when persisting multiple new entities
that are subclasses of a baseclass that has the @Version attribute set,
only the last persisted entity will have it's version set.
2013-12-14 13:24:47 +01:00
ptarjan
1fe8ff756e
Fix dependency for tests/Doctrine/Tests/ORM/Functional/ReferenceProxyTest.php
2013-11-22 01:15:13 -08:00
flack
88ae5883f3
Add testcase
2013-11-17 11:51:09 +01:00
Matthieu Napoli
8bd54be4ec
[DDC-2775] Tests reproducing DDC-2775
2013-11-04 12:40:51 +01:00
Johannes M. Schmitt
5586ddd6b7
removes restrictions on constructors of embedded objects
2013-11-02 13:31:44 +01:00
Johannes M. Schmitt
ece62d6ad7
adds support & tests for embeddables in inheritance schemes
2013-11-02 13:23:56 +01:00
Johannes M. Schmitt
4f6c15099a
fixes coding style
2013-11-01 21:47:56 +01:00
Johannes M. Schmitt
41c937b983
adds test for non-existent field
2013-11-01 20:54:45 +01:00
Johannes M. Schmitt
30897c3115
adds tests for update/delete DQL queries
2013-11-01 20:46:08 +01:00
Johannes M. Schmitt
c67ac8a11b
adds support for selecting based on embedded fields
2013-11-01 20:38:19 +01:00
Johannes M. Schmitt
38b041d909
Merge remote-tracking branch 'origin/ValueObjects'
...
Conflicts:
lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
2013-11-01 20:17:43 +01:00
Chris Collins
7249804e3f
Added a failing test case for DDC-2759.
2013-10-24 13:02:42 +01:00
David Stensland
089006927e
[DDC-2655] Don't let getOneOrNullResult throw NoResultException
2013-10-09 11:38:33 -04:00
Guilherme Blanco
ded3d20630
Merge pull request #787 from flip111/patch-1
...
Update DDC719Test.php to be compatible with MsSQL
2013-10-07 11:22:14 -07:00
fabios
dd4bdd776a
Fix DDC-1514 test
2013-10-01 12:00:52 -04:00
flip111
4282fa4787
Used ternary operator to reduce LOC
2013-10-01 17:25:49 +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
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
Stefan Kleff
adf2b7cce7
Listener class prefix
2013-09-20 09:20:58 +02:00
Stefan Kleff
619c6a03ce
removed unused use statements, fixed typo and group tag
2013-09-19 15:16:51 +02:00
Stefan Kleff
d4a08f7ab7
Added unit test
2013-09-19 14:16:33 +02:00
flip111
67dd32d9fb
A nicer way of detecting the platform
...
Inspired by https://github.com/doctrine/doctrine2/blob/master/tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php#L188
2013-09-13 16:35:34 +02:00
flip111
e49a673a01
Update DatabaseDriverTest.php
...
SQL Server does not support unsigned integers
2013-09-13 16:29:31 +02:00
flip111
a190dad0b1
Update DDC719Test.php to be compatible with MsSQL
...
Apparently Doctrine adds "with (nolock)" now for the mssql platform, but the test has not been updated yet.
2013-09-13 15:11:35 +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
490b501679
Fix tests running against Oracle not comparing SQL case-insenstive
2013-09-07 08:52:50 +02:00
Guilherme Blanco
09d51f9df5
Fixing missing table aliases when using Many2Many persister.
2013-08-21 23:39:40 -04:00
Roger Llopart Pla
5a7efa2895
Fixed name colision.
2013-08-10 16:58:07 +02:00
Roger Llopart Pla
e755fe7842
Added a test which verifies that the tree walkers are kept.
2013-08-10 16:58:07 +02:00
Guilherme Blanco
5f5c0ffc32
Fixing pgsql test.
2013-08-08 23:57:41 -04:00
Guilherme Blanco
b314476599
ORM side fixes.
2013-08-08 22:01:26 -04:00
Guilherme Blanco
3ec267e8a6
Added coverage for querying support during postLoad.
2013-08-08 20:53:11 -04:00
bronze1man
97d9ba62bb
fix some file mode 755->644
2013-08-06 14:12:05 +08:00
Guilherme Blanco
7ec59878a1
Added postLoad behavioral event coverage as a set of functional test.
2013-08-06 01:47:42 -04: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
b3d0ad7a87
Added coverage to DDC-2524. Updated DDC-1719 to fix related DBAL bug.
2013-07-31 01:24:02 -04:00
Guilherme Blanco
c7b4c9bf0f
Fixed DDC-1884.
2013-07-30 01:29:34 -04:00
Fabio B. Silva
1fbe1ffc5a
fix DDC-2579
2013-07-29 19:31:44 -04:00
Sander Marechal
06ed21e883
Remove extra-lazy-get for ManyToMany relation
2013-06-27 14:19:39 +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
Fabio B. Silva
1cff8b4d98
Fix DDC-2519
2013-06-21 16:07:09 -04:00
Sander Marechal
70427871ce
Extra test for indexBy identifier versus indexBy other fields
2013-06-20 14:20:00 +02:00
Sander Marechal
3b92cfac5a
Use find() if the indexBy field is the identifier
2013-06-20 13:45:38 +02:00
Sander Marechal
647c5e2cad
Test actual data returned by get()
2013-06-20 10:18:08 +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
Guilherme Blanco
7903a2b513
Merge pull request #695 from doctrine/RepositoryFactory
...
Implemented support for RepositoryFactory.
2013-06-14 09:19:43 -07: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
Marco Pivetta
a1355d0bb9
Adding failing test for DDC-2214
...
Parameters being bound to an SQL query should have the same type as
the identifier of the objects being bound to the placeholders of a
DQL query - this is currently broken with proxies, as this test
demonstrates.
2013-06-12 20:51:45 +02: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
b15758bb42
DDC-2476 Commented check under PostgreSQL.
2013-06-12 02:29:08 -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
Fabio B. Silva
710d0d1109
Fix DDC-1995
2013-06-07 17:24:05 -04:00
Alexander
66a842c143
[DDC-2471] Fix EQ/NEQ null handling of criteria
2013-05-26 09:04:19 +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
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
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
0864ab8ada
[DDC-1998] Pass types to Connection#delete() to allow custom conversions to happen.
2013-05-01 20:30:45 +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
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
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
9613f1d8cb
[DDC-93] Rename ReflectionProxy to ReflectionEmbeddedProperty, Add DQL test with Object and Array Hydration.
2013-03-27 21:45:16 +01:00
Benjamin Eberlei
879ab6e52b
[DDC-93] Show CRUD with value objects with current change tracking assumptions.
2013-03-27 07:44:47 +01:00
Benjamin Eberlei
0204a8b69a
[DDC-93] Implement first working version of value objects using a ReflectionProxy object, bypassing changes to UnitOfWork, Persisters and Hydrators.
2013-03-27 00:10:30 +01:00
Benjamin Eberlei
32988b3cdf
[DDC-93] Parse @Embedded and @Embeddable during SchemaTool processing to make parsing work.
2013-03-26 21:45:15 +01:00
Benjamin Eberlei
02d34bbba6
[DDC-93] Started ValueObjectsTest
2013-03-26 20:55:55 +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
1effd38043
Fix DDC-2252
2013-03-16 01:15:54 -03:00