kwiateusz
7261060905
Few more converts from assertTrue($a instance of $b) to assertInstanceOf
2011-07-26 15:22:57 +02:00
kwiateusz
1ea3e543ab
Correted indentation and variable name
2011-07-26 12:10:30 +02:00
kwiateusz
49c735109c
Change from assertType to assertInstanceOf.
...
Now PHPUnit doesn't show warning about deprecation of assertType.
Also some refractoring from assertTrue($a instanceof $b) to assertInstanceOf.
Leading \ in namespaces is not required so I removed it from few assertions.
2011-07-26 11:38:09 +02:00
Benjamin Eberlei
5733574867
Merge branch 'master' of github.com:doctrine/doctrine2
2011-07-12 22:47:33 +02:00
Benjamin Eberlei
c261315ea7
DDC-1250 - Fix bug with inverse one to one loading and ambigious column names in certain scenarios
2011-07-09 22:11:49 +02:00
Benjamin Eberlei
2b207106a3
DDC-1022 - Call __wakeup() with the same semantics then ClassMetadata::newInstance() does inside UnitOfWork
2011-07-09 12:12:44 +02:00
Benjamin Eberlei
2858b8290f
DDC-1238 - Fixed a bug introduced when refactoring persisters hydration. This occurs when you call $em->clear() and you start accessing a proxy.
2011-07-04 23:19:08 +02:00
Benjamin Eberlei
a638154046
Update tests
2011-07-04 20:59:46 +02:00
Benjamin Eberlei
a947e8a4b0
DDC-1238 - Reproducible case, its correct through
2011-07-04 20:59:46 +02:00
Benjamin Eberlei
8e7c156451
Started trying to reproduce this issue
2011-07-04 20:59:46 +02:00
Benjamin Eberlei
551f6d05d9
DDC-1230 - Fix bug where UnitOfWork does not set STATE_REMOVE when calling EntityManager#remove() on an entity
2011-06-28 21:37:53 +02:00
Benjamin Eberlei
52431251cb
Fix some of the problems with Oracle testsuite
2011-06-26 17:20:03 +02:00
Benjamin Eberlei
a73a1e8437
DDC-1226, DDC-1228 - Bugfix with refereshing proxy references not setting the originalEntityData.
2011-06-25 14:38:44 +02:00
Guilherme Blanco
db80b2b135
Fixed phpunit tests which was failing due to a duplicate use declaration.
2011-06-21 12:38:08 -03:00
Benjamin Eberlei
82f0c244e8
DDC-1189 - Bugfix with PersistentCollection#clear() in combination with lazy loading
2011-06-19 09:39:34 +02:00
Benjamin Eberlei
fa7574b2ba
Removed AllTests files and Suites
2011-06-18 22:49:25 +02:00
Benjamin Eberlei
32b146ea8a
Switch testsuite to run with phpunit.ini.dist from main folder, not using AllTests approach. Fixed global state problem in tests that was caused by EventManager being reused. Significantly enhanced error message about cascade persist
2011-06-18 22:47:21 +02:00
Benjamin Eberlei
713f4654fd
Merge remote-tracking branch 'origin/master'
2011-06-16 22:49:29 +02:00
Benjamin Eberlei
42c5382a03
DDC-1172 - Handle sequence dropping in SchemaTool.
2011-06-16 22:34:04 +02:00
Michael Ridgway
d1106a730b
Made DDC-1209 test pass
2011-06-16 08:55:09 -04:00
Michael Ridgway
da2d83fc7d
DDC-1209 tests
2011-06-15 17:15:46 -04:00
Benjamin Eberlei
4371e8fab0
DDC-1163 - Fix nasty bug with inheritance in UnitOfWork::executeUpdates() and executeRemovals()
2011-06-05 16:21:23 +02:00
Benjamin Eberlei
d3ab9b51fa
DDC-1181 - Add test that verifies cascade remove works for entities with foreign identifiers
2011-06-05 13:57:44 +02:00
Benjamin Eberlei
acaf08d4b7
DDC-1193 - Fix bug with cascade remove and proxy classes.
2011-06-05 09:59:16 +02:00
Benjamin Eberlei
875912bffd
DDC-733 - Add UnitOfWork::initializeObject() method.
2011-06-05 08:44:38 +02:00
Benjamin Eberlei
1b4f0a5e1f
DDC-1080 - Add failing testcase
2011-05-14 13:32:12 +02:00
Benjamin Eberlei
cb3615ab47
DDC-1151 - Fix missing table quotes when adding foreign keys in SchemaTool
2011-05-14 08:44:19 +02:00
Guilherme Blanco
2a7364bb18
We now support @Id on @ManyToOne fields. Removed TODO and associated code.
2011-05-14 00:53:22 -03:00
Guilherme Blanco
f4d62b317e
Fixed endless recursion of DDC-719 test.
2011-05-14 00:49:46 -03:00
Guilherme Blanco
1e9e2de737
[DDC-1122] Added coverage for bug report.
2011-05-13 00:12:05 -03:00
Guilherme Blanco
8e3fdc5adc
[DDC-1148] Implement auto-inference of types in setParameter.
2011-05-12 23:05:45 -03:00
Guilherme Blanco
54a0109d5d
[DDC-1147] Allowed usage of 0-based input parameters in DQL.
2011-05-11 17:30:42 -03:00
Benjamin Eberlei
d4569baa11
[DDC-1129] Fix bug in version changeset computation aswell as inline ClassMetadata::isCollectionValuedAssociation to increase performance by 2-5%
2011-05-01 11:44:31 +02:00
Benjamin Eberlei
7a068c206e
DDC-1043 - Make computeChangeSet() algorithm more strict, possible leading to more updates to to values that are not exactly the same. However this is necessary to avoid bugs with certain PHP casting rules, i.e. +44 = 44
2011-05-01 10:21:47 +02:00
Francis Besset
a141aaf663
[PR-39] Throw exception when hydrating joined entity without existing parent alias (NativeQuery problem only)
2011-05-01 00:17:40 +02:00
Benjamin Eberlei
85d6b9fd39
Merge pull request #42 from mridgway/DDC-1059.
...
DDC-1059: RSM Helper
2011-04-30 15:01:25 -07:00
Benjamin Eberlei
73c7605a5c
[DDC-1094] Add support for limit, offset and orderby in EntityRepository::findBy().
2011-04-30 23:18:24 +02:00
Benjamin Eberlei
5179ff921b
[DBAL-115] REALLY fix issues with SchemaTool::getDropSchemaSQL().
2011-04-30 17:16:34 +02:00
Benjamin Eberlei
f09d299660
[DDC-1132] Fix many to many table detection.
2011-04-30 11:15:45 +02:00
Michael Ridgway
af4cf0d0ba
Replaced prefix parameter with renamedColumns; Added exception when duplicate columns found
2011-04-14 20:55:03 -04:00
Benjamin Eberlei
822481d360
[DDC-1040] Add regression tests for entity as multiple named/positional parameters.
2011-04-03 23:06:03 +02:00
Benjamin Eberlei
a329007526
[DDC-1087] Add missing resolution to IS NULL in EntityRepository when passing a null value as a criteria.
2011-04-03 09:03:43 +02:00
Benjamin Eberlei
ea52b3cc8f
[DDC-991] Rename method to AbstractQuery::getOneOrNullResult().
2011-03-31 23:35:01 +02:00
Benjamin Eberlei
24a7a72f59
[DDC-991] add AbstractQuery::getOneResult() method that returns null instead of throwing an exception as getSingleResult() does.
2011-03-31 23:32:49 +02:00
Michael Ridgway
c46d835146
Moved new functions to ResultSetMappingBuilder class
2011-03-30 10:27:31 -04:00
Michael Ridgway
20dc72ef9a
First pass on RSM helper functions for adding entities
2011-03-29 20:35:01 -04:00
Benjamin Eberlei
34ad308599
[DDC-692] Add respective metadata mapping possiblities for read-only entities and a test.
2011-03-29 20:17:44 +02:00
Benjamin Eberlei
36985ee704
Merge remote branch 'mridgway/DDC-696' into DDC-696
2011-03-29 19:42:38 +02:00
Benjamin Eberlei
4f1af0114f
[DDC-1014] Add DATE_ADD(), DATE_SUB(), DATE_DIFF() functions for DQL.
2011-03-27 12:18:47 +02:00
Michael Ridgway
17cbb34952
Clean up of test case
2011-03-21 23:30:10 -04:00