1
0
mirror of synced 2024-12-14 23:26:04 +03:00
Commit Graph

1718 Commits

Author SHA1 Message Date
Benjamin Eberlei
51e6681934 DDC-646 - Bugfix with missing inclusion of Namespace, added test for ConvertDoctrine1SchemaCommand 2010-06-20 00:28:20 +02:00
Jonathan H. Wage
d27733f690 [DDC-613] Fixing issue with using function expressions in select not being allowed 2010-06-16 11:55:22 -04:00
Jonathan H. Wage
20c1ff3146 [DDC-642] Fixes issue with exporters not including inversedBy functionality 2010-06-16 11:47:22 -04:00
Jonathan H. Wage
e6f465ec80 [DDC-641] Fixing issue with XmlExporter cascade options 2010-06-16 11:19:26 -04:00
Benjamin Eberlei
8639735e91 Adding more Tests for DateTime, Date and Time type handling, related to DBAL-22. Failures in Oracle Time Type handling have to fixed in DBAL package. 2010-06-14 23:46:04 +02:00
Benjamin Eberlei
7018509126 Fix a bug with Table Indexes on XML Driver. Added tests for setting indexes on tables for all the mapping drivers 2010-06-13 22:59:56 +02:00
Benjamin Eberlei
b7db8df7ef Fixed DDC-627 and DDC-616 2010-06-13 19:36:49 +02:00
Benjamin Eberlei
f2aacf44c8 DDC-628 - Fix missing precision and scale attributes on doctrine-mapping.xsd 2010-06-13 17:21:14 +02:00
Roman S. Borschel
d6cb87a0ac [DDC-604] Fixed. 2010-06-07 13:57:43 +02:00
Roman S. Borschel
a90ad24cca Fixed order in testcase. 2010-06-07 13:02:29 +02:00
Roman S. Borschel
37b4652639 [DDC-599] Fixed. 2010-06-07 00:31:59 +02:00
Roman S. Borschel
4a9369de9e Fixed incorrect transaction management in locking tests. 2010-06-07 00:15:38 +02:00
Benjamin Eberlei
35e49aaf9f Fixed a fatal error in DatabasePlatformMock when linking ORM against latest DBAL, added a phpunit configuration.xml to change dependencies for tests 2010-06-06 22:41:05 +02:00
Jonathan H. Wage
bf9f7f85af Tweaking the method names of the recently added feature which allows custom hydration modes. 2010-06-03 14:11:31 -04:00
Jonathan H. Wage
5b148c7b20 [DDC-161] Adding ability to use custom hydrators with queries. 2010-06-02 23:25:09 -04:00
Jonathan H. Wage
f54dce93aa Fixing failing test introduced in last commit. 2010-05-25 18:22:42 -04:00
David Abdemoulaie
ece0e3ad88 Third parameter to Expr::substring is now optional 2010-05-25 15:11:35 -05:00
David Abdemoulaie
b6a5402bcb Query\Expr::_quoteLiteral properly quotes numeric strings 2010-05-25 13:41:02 -05:00
Jonathan H. Wage
2db8ad30a9 Fixing DatabaseDriverTest fails for mysql. 2010-05-25 13:35:12 -04:00
Jonathan H. Wage
e8386eca37 Cleanup after move. 2010-05-25 11:49:33 -04:00
Jonathan H. Wage
4f8fc24226 Fixing TestInit to work with submodules. 2010-05-25 11:42:09 -04:00
beberlei
e4c7fa961e Removed Common and DBAL tests from repository, they are now in their respective projects
Removed Common and DBAL tests from repository, they are now in their respective projects
2010-05-23 19:19:48 +02:00
Roman S. Borschel
616f2eda0a [DDC-531] Fixed. 2010-05-21 11:49:05 +02:00
Roman S. Borschel
a45560dbd0 [DDC-505] Fixed and small lexer simplifcations that were marked as todo. 2010-05-18 22:19:08 +02:00
Roman S. Borschel
3cbee1fa09 Merge commit 'upstream/master' 2010-05-16 13:30:48 +02:00
Roman S. Borschel
3045507a9b [DDC-593] Fixed. 2010-05-16 13:30:40 +02:00
Benjamin Eberlei
ba6cb6bd14 Fixed nasty bug with Proxies not getting initialized correctly. 2010-05-15 21:32:34 +02:00
Benjamin Eberlei
46684ea5c9 Added a bunch of functional tests for the public read, write and transactional public DBAL API, passing all the current drivers
Added a Write Test
2010-05-15 19:54:56 +02:00
Benjamin Eberlei
78328ec6ea DDC-178 - Removed Doctrine\ORM\LockMode in favour of Doctrine\DBAL\LockMode 2010-05-15 11:48:20 +02:00
Benjamin Eberlei
8a67621b6a DDC-178 - Fixed problems occuring from merging upstream, re-ran API and tests, finalizing lock-support for merge with upstream 2010-05-15 09:58:39 +02:00
Benjamin Eberlei
64b57bbcfb Merge upstream into lock-support branch 2010-05-15 09:41:32 +02:00
David Abdemoulaie
668456e4d8 [DDC-588] EntityManager::refresh uses fieldName instead of columnName 2010-05-14 22:10:13 +02:00
Roman S. Borschel
8174f67a69 Fixed DataAccessTest to be included in AllTests. 2010-05-14 20:38:35 +02:00
Roman S. Borschel
ad9d678701 Removing API docs from repo, now that we have them online. Merged fetchRow fix from hobodave. 2010-05-14 20:33:42 +02:00
Roman S. Borschel
5dbd40563c Added control abstractions for transaction demarcation. 2010-05-13 13:19:59 +02:00
Benjamin Eberlei
d00f674a08 DDC-515 - Enhanced Validate-Schema-Command, integrated it with CLI and besides mapping<->database checks also do consistency checks of the mapping files 2010-05-11 23:08:36 +02:00
Christian Heinrich
f2213c4d00 Fixed #DDC-578
Also added a new testcase
2010-05-11 11:19:38 +02:00
Roman S. Borschel
f619a15a63 Removed EntityTransaction until it has a real purpose. Added the affected entity to OptimisticLockException. Updated functional optimistic locking tests accordingly. 2010-05-10 23:51:56 +02:00
Guilherme Blanco
d0325d7048 Merged with upstream/master 2010-05-08 12:42:06 -03:00
Roman S. Borschel
59d4e0c8e7 [DDC-481] Fixed. 2010-05-08 17:01:20 +02:00
Christian Heinrich
dc3844e167 Fixed #DDC-571 2010-05-08 14:29:43 +02:00
Roman S. Borschel
ee04b31da3 Included new PostgreSQL IDENTITY/SERIAL test in functional suite. 2010-05-08 14:20:44 +02:00
Roman S. Borschel
561236bd56 [DDC-576] Fixed. 2010-05-08 14:08:18 +02:00
Roman S. Borschel
8d52967fcd Polished QueryBuilder API documentation and added another test. 2010-05-07 13:36:25 +02:00
Guilherme Blanco
b12b8b0041 Revertd partially the support to DBAL\Transaction, it was wrong. Fixed implementation of ORM\EntityTransaction and fixed tests. 2010-05-06 18:39:19 -03:00
Benjamin Eberlei
c3303881a9 Fixed IBM DB2 Platform to support locking 2010-05-02 13:18:47 +02:00
Benjamin Eberlei
b8402c9563 Added Gearman Lock Test and Worker, verified lockings indeed works on MySQL, PostgreSQL and Oracle 2010-05-02 13:04:25 +02:00
Benjamin Eberlei
f65a555d04 Merge Upstream into Locking-Branch 2010-05-02 13:02:44 +02:00
Guilherme Blanco
4ab5dffc4c Fixed UnitOfWork and isRollbackOnly flag. 2010-05-01 11:49:14 -03:00
Roman S. Borschel
a9d88146f1 Merge commit 'upstream/master' 2010-05-01 16:06:16 +02:00
Benjamin Eberlei
302409dba4 Fixed Error due to merging tests/Doctrine/Tests/TestInit.php file 2010-05-01 13:51:29 +02:00
Roman S. Borschel
3899888a0c Merge commit 'upstream/master' 2010-05-01 12:17:03 +02:00
Roman S. Borschel
080f737338 [DDC-534] Fixed. 2010-05-01 12:14:16 +02:00
Benjamin Eberlei
604ed962e5 Merged Master into IBM DB2 branch 2010-05-01 04:07:32 +02:00
Benjamin Eberlei
427d4eed29 DDC-541 - Schema Table now return Pk, then Fk, then normal columns in that order 2010-05-01 03:57:58 +02:00
Benjamin Eberlei
6c7aaa727c Added tests for 41e830ca68, thereby finding two issues with XML and YAML Driver handling of Sequence-Generator 2010-05-01 03:28:18 +02:00
Benjamin Eberlei
9cee8bf890 Merge remote branch 'dc2master/master' 2010-05-01 03:12:27 +02:00
Roman S. Borschel
db2be55e27 [DDC-561] Fixed. 2010-04-30 17:30:27 +02:00
Guilherme Blanco
6705d9b9cc Introduced the concept of DBAL\Transaction and ORM\EntityTransaction. 2010-04-29 22:46:51 -03:00
Guilherme Blanco
50f3435e84 Optimized Query AST resultant of the parsing process phase 1 2010-04-29 22:15:36 -03:00
Benjamin Eberlei
f38584a51e DDC-545 - Add unittest for all drivers uniqueConstraint capabilities, fix bug in XML Driver that disallowed using them 2010-04-28 20:27:53 +02:00
Roman S. Borschel
8396e72a2c Fixed casing. 2010-04-26 14:25:23 +02:00
Jonathan H. Wage
6bda2b44fe Renaming PhpDriver to PHPDriver 2010-04-26 14:12:36 +02:00
Roman S. Borschel
d1d1cecc06 Restored missing files. 2010-04-26 14:12:20 +02:00
Roman S. Borschel
bff4f49b7a Merge commit 'upstream/master'
Conflicts:
	lib/Doctrine/Common/Annotations/AnnotationReader.php
	lib/Doctrine/Common/Annotations/Parser.php
2010-04-26 13:17:36 +02:00
Roman S. Borschel
b505a27370 Renamed StandardEntityPersister to BasicEntityPersister 2010-04-26 13:12:46 +02:00
Roman S. Borschel
760ea34a0c [DDC-497][DDC-500][DDC-342] Fixed. Persister polishing and refactoring. More to come for that, but after beta1. 2010-04-26 13:02:30 +02:00
Jonathan H. Wage
27a0058b89 Initial entry of StaticPHPDriver 2010-04-23 16:16:16 -04:00
Jonathan H. Wage
6d29f05d3a Renaming PhpDriver to PHPDriver 2010-04-23 14:37:29 -04:00
Guilherme Blanco
7006f4dd74 Merge commit 'upstream/master' 2010-04-22 11:35:18 -03:00
Guilherme Blanco
5ecca4f5e0 [2.0][DDC-524] Fixed issue with UPDATE/DELETE statements generating wrong SQL when using Association Paths. 2010-04-22 11:32:01 -03:00
Benjamin Eberlei
c763b47626 Merge commit 'dc2master/master' into lock-support 2010-04-21 20:30:41 +02:00
Benjamin Eberlei
b7cac8c310 Fixed pecl/ibm_db2 Driver and Connection to run smoothly against the complete test-suite (depending on a c-patch to the extension though) 2010-04-20 23:20:42 +02:00
Roman S. Borschel
4b71afe7c2 Improving metadata caching performance by only serializing what is absolutely necessary. 2010-04-18 22:47:03 +02:00
Benjamin Eberlei
024b2bab91 DDC-496 Finished first versions of platform and schema manager for DB2, DDC-528 Added support for PDO_IBM driver, passing all but 3 tests that are related to CLOB fields 2010-04-18 19:12:38 +02:00
Roman S. Borschel
01c2c06bbf [DDC-512] Fixed. 2010-04-15 18:36:17 +02:00
Roman S. Borschel
e83bfeede3 Simplified and streamlined configuration classes. 2010-04-15 11:55:03 +02:00
Guilherme Blanco
9f15acdb25 Merge commit 'opensky/master' 2010-04-14 23:43:51 -03:00
Guilherme Blanco
26ff265652 [2.0][DDC-431] Added coverage, fixing the ticket. 2010-04-14 23:27:33 -03:00
Guilherme Blanco
c4ffd04da0 [2.0][DDC-430] Added coverage, fixing the ticket. 2010-04-14 22:49:53 -03:00
Guilherme Blanco
d045c6f6c1 Merge commit 'upstream/master' 2010-04-14 21:35:10 -03:00
Steven Surowiec
c122953a7e Changed privates to protected and updated setUp to use late static binding. This allows projects using Doctrine2 to use its test cases for testing their own entities. 2010-04-14 14:20:44 -04:00
Roman S. Borschel
f3c672a2e5 Merged from upstream/master. 2010-04-14 17:21:15 +02:00
Roman S. Borschel
d4232d906e [DDC-388] Fixed. 2010-04-14 17:07:08 +02:00
Jonathan H. Wage
d656566791 Merge remote branch 'upstream/master' 2010-04-14 10:32:11 -04:00
Jonathan H. Wage
ceb05e85ef Removing ClassMetadataReader 2010-04-14 10:31:50 -04:00
Roman S. Borschel
7fefe3f4b4 Merge commit 'upstream/master' 2010-04-14 10:50:37 +02:00
Guilherme Blanco
889094709e [2.0] Added support to IdentificationVariable that was missing in ArithmeticPrimary (it was not correctly handling it). Uncommented a unit test that added coverage to it. 2010-04-14 00:04:44 -03:00
Guilherme Blanco
f3d91b9ea9 [2.0] Fixed E_NOTICE being throwing when ->getSingleScalarResult() is called and no result is found. Added coverage for this and also for multiple result (NonUniqueResultException). 2010-04-13 22:06:01 -03:00
Jonathan H. Wage
12c9ca971b Merge remote branch 'origin/master' 2010-04-13 14:14:02 -04:00
Jonathan H. Wage
afc4d82793 Fixing typo in tests xml mapping file 2010-04-13 14:13:15 -04:00
Guilherme Blanco
dd2dd80281 [2.0][DDC-493] Added coverage to DDC-493 and optimized DDC-513 unit tests. Previous commit fixed the issue. 2010-04-13 00:40:45 -03:00
Guilherme Blanco
56a8f5cd53 [2.0][DDC-448][DDC-513] Fixed issue with Joined Inheritance Type and One To One Associations. 2010-04-13 00:29:29 -03:00
Roman S. Borschel
6d08164162 Merge commit 'upstream/master' 2010-04-13 00:50:12 +02:00
Roman S. Borschel
db603547a2 Added failing test for DDC-388. Naming refactorings and comment cleanups. 2010-04-13 00:49:19 +02:00
Benjamin Eberlei
dfbd9e6e2f DDC-178 - Add additional tests for Locking Support 2010-04-11 16:43:33 +02:00
Benjamin Eberlei
317e84d8d7 DDC-510 - Moved AnnotationDriver Factory Method onto Configuration instance 2010-04-11 11:06:54 +02:00
Benjamin Eberlei
6e5b1bbe60 DDC-510 - Refactored Metadata Driver to be an required option, even for Annotations - allowing to use the specified paths in ORM Tooling Commands 2010-04-10 17:35:18 +02:00
Benjamin Eberlei
4a1c3785ec Merge commit 'dc2master/master' into lock-support 2010-04-10 10:12:35 +02:00
Roman S. Borschel
cb616956c6 Merge commit 'upstream/master' 2010-04-10 00:12:30 +02:00
Roman S. Borschel
7cc56c45d3 [DDC-193] Fixed. 2010-04-10 00:00:36 +02:00
Benjamin Eberlei
b67e1f8622 Fixed testsuite after CLI refactorings, Removed Symfony YAML Autoloader Hack 2010-04-09 15:40:42 +02:00
Benjamin Eberlei
e6a44b145f [DDC-178] First approach to Locking support 2010-04-08 22:50:06 +02:00
Benjamin Eberlei
5fd6e687ce Commit current state of IBM DB2 driver, but it segfaults the hell out of the Doctrine Testsuite 2010-04-08 22:40:53 +02:00
Benjamin Eberlei
5381e3d5a4 Fix Testsuite to work with Git 2010-04-07 20:47:53 +02:00
Benjamin Eberlei
324b3ee426 Fix Testsuite to work with Git 2010-04-07 20:47:36 +02:00
Benjamin Eberlei
7d179aaf95 Current snapshot of the IBM Db2 Driver Implementation 2010-04-07 20:39:34 +02:00
Benjamin Eberlei
ed9692187d Fix Testsuite to work with Git 2010-04-07 20:38:13 +02:00
Benjamin Eberlei
36b3e180a8 Fix Testsuite to work with Git 2010-04-07 20:35:33 +02:00
beberlei
304cc2e0cc [2.0] DDC-341 - Added Composite Model-Set and 3 tests, fixed two bugs in SqlWalker with Composite Key support 2010-04-03 14:38:06 +00:00
beberlei
95994f7a44 [2.0] DDC-341 - Added Composite Model-Set and 3 tests, fixed two bugs in SqlWalker with Composite Key support 2010-04-02 21:37:15 +00:00
beberlei
5b10b7098f [2.0] DDC-484 - Fix reference to Doctrine\ORM\ORMException in ProxyException, added two unit-tests for missing tests of ProxyException throws 2010-04-02 15:05:53 +00:00
guilhermeblanco
c9de54b4a2 [2.0] Changed Connection::execute() to Connection::executeQuery() as defined as a todo. 2010-03-31 21:13:34 +00:00
guilhermeblanco
b0963d91c7 [2.0][DDC-274] Moved Sql to SQL loggers. Also implemented some todos. 2010-03-31 20:47:35 +00:00
romanb
c4a9ce1cd3 [2.0][DDC-483] Fixed. 2010-03-31 17:19:32 +00:00
guilhermeblanco
511bf2248e [2.0] Fixed and added some missing/wrong docblocks. Renamed Assigned to AssignedGenerator as scheduled to be renamed. 2010-03-30 21:14:17 +00:00
romanb
62e7146d2d [2.0][DDC-423] Fixed. 2010-03-29 13:50:57 +00:00
romanb
354ede1e04 [2.0][DDC-354][DDC-425] Fixed. Encapsulated SQL logging better in the DBAL. Added binding types to DBAL mapping types as well as using these binding types in the persisters. Query and NativeQuery now support PDO binding types as well as DBAL mapping types when binding parameters. 2010-03-29 13:20:41 +00:00
beberlei
24d8e94280 [2.0] DDC-478 - Fix QueryBuilder Expr\Between Support 2010-03-28 10:30:43 +00:00
romanb
49621286a2 [2.0][DDC-479] Fixed. 2010-03-26 22:07:31 +00:00
jwage
c6f0699dbf [2.0] Removing deprecated GlobalClassLoader and IsolatedClassLoader and updating tests 2010-03-24 16:22:49 +00:00
jwage
0b68e9473d [2.0][DDC-449] Fixing issue with ClassMetadataReader and existing driver sources being added 2010-03-24 15:31:54 +00:00
guilhermeblanco
b2167985ad [2.0][DDC-274] Fixing Coding Standards for CLI tool. 2010-03-24 02:37:45 +00:00
guilhermeblanco
b175427043 [2.0][DDC-458] Fixed issue with IN () support when providing numeric values separated by comma without spaces. 2010-03-23 17:42:34 +00:00
beberlei
5018985807 [2.0] DDC-239 - Added several new mapping validations for duplicate association/field and or column name definitions, and in combination with the discriminator column name. 2010-03-20 19:23:13 +00:00
beberlei
9d2c275618 [2.0] DDC-407 - Add regression-test to fix that Scalar-Results are 1-based, Add ScalarResult with Scalar Field Hydration Test 2010-03-20 17:40:30 +00:00
beberlei
46e7724988 [2.0] Added missing test-case to Doctrine\Tests\ORM\Functional\AllTests 2010-03-20 17:37:18 +00:00
beberlei
1e7ca2bd7a [2.0] DDC-390 Fix SequenceGeneratorTest which wasnt testing anything before :-) Now showing that Sequence Generator works with allocation sizes larger than 1 2010-03-20 17:04:46 +00:00
romanb
2209c5ef30 [2.0][DDC-444] Fixed. 2010-03-20 09:40:50 +00:00
jwage
f34a99ccce [2.0] Fixing hardcoded dependency to EntityGenerator 2010-03-20 03:48:58 +00:00
jwage
42c5562874 [2.0] Improving EntityGenerated: added normal doc blocks above annotations(even if annotations aren't generated), adding type hinting, added generation of default values for properties 2010-03-19 22:38:45 +00:00
guilhermeblanco
b73e3c064c [2.0] Commented the CLIController tests that was messing with the UnitTests 2010-03-19 18:12:53 +00:00
jwage
089b5dd88a [2.0] Refactoring code for reading multiple sources of mapping information from ClassMetadataExporter to a new ClassMetadataReader tool so it can be used to read mapping information easily from multiple different sources. This is used for generating repositories, converting mapping information, generating entity stubs, etc. Generally though, it is useful to be able to read the information for some mapping files into an array of ClassMetadataInfo instances without it being bound to the ORM and the metadata referenced by the EntityManager ClassMetadataFactory 2010-03-19 04:19:15 +00:00
beberlei
1ddebef8a4 [2.0] DDC-318 - Fixed idempotency issues with AnnotationDriver::getAllClassNames() even across multiple instances using the same metadata paths. 2010-03-18 23:04:21 +00:00
beberlei
b25d5d277d [2.0] DDC-283 - Add two events in SchemaTool that allow to hook into the generated Schema representation, possibly modifying or reacting to it in userland or extensions code. 2010-03-18 22:36:27 +00:00
jwage
c6678a0f4a [2.0] Renaming orm:generate-entity-stubs to orm:generate-entities to be consistent and fixed a few bugs 2010-03-18 22:35:16 +00:00
jwage
c41a08a6be [2.0][DDC-359] Adding some tests for CliController and fixing bug with empty option value .i.e "--option=" 2010-03-18 21:48:04 +00:00
jwage
49c73d5682 [2.0] Refactoring AnnotationExporter code to a EntityGenerator tool which is used now in orm:convert-mapping to generate annotated entities and also used in orm:generate-entity-stubs for generating entity classes and properties/method stubs from mapping information 2010-03-18 21:38:42 +00:00
romanb
53eb51b687 [2.0][DDC-422] Fixed. 2010-03-18 13:43:38 +00:00
romanb
76663a0501 [2.0][DDC-416] Fixed. 2010-03-18 11:40:43 +00:00
beberlei
91ac6fae3e [2.0] Fix File sensitivity issue fataling test-suite on Unix 2010-03-18 09:14:19 +00:00
jwage
770d00abe9 [2.0] Improving test coverage for mapping exporters as well as adding missing functionality 2010-03-17 21:25:19 +00:00
jwage
1d60c65daf [2.0] Adding test to ensure onDelete and onUpdate are read properly from all mapping drivers 2010-03-17 14:20:18 +00:00
jwage
e06f7c981d [2.0] Updating Symfony Yaml component to PHP 5.3 version 2010-03-16 23:03:29 +00:00
jwage
a25c704246 [2.0] Fixing PhpDriver and covering it with tests 2010-03-16 22:41:09 +00:00
guilhermeblanco
71b1f709c8 [2.0] Removed wrong unit test. Fixed phpDoc of QueryBuilder that was pointing to an unknown object. 2010-03-16 20:31:36 +00:00
guilhermeblanco
bb94f6ea7c [2.0] Fixed support to ResultVariable usage in ArithmeticExpression. 2010-03-16 15:02:43 +00:00
beberlei
ec4bd256d5 [2.0] DDC-412 - Fixed YAML Driver not allowing multiple lifecycle callbacks per event. Backwards-incompatible change 2010-03-15 19:29:07 +00:00
romanb
a53c2fbd6c [2.0] Code cleanups. Preparations for DDC-193. Fixed DDC-399, type configuration remains global for now but the irritating instance methods on the Configuration have been removed. Use Type::addType et al. Added TODOs for naming standards. 2010-03-15 17:19:00 +00:00
beberlei
bc6714c2c8 [2.0] DDC-414 - Changed semantics of preUpdate Event to allow only changes to the entity changeset, not the internal state of the entity anymore. 2010-03-14 22:16:15 +00:00