1
0
mirror of synced 2024-12-13 22:56:04 +03:00
Commit Graph

311 Commits

Author SHA1 Message Date
jwage
5fb493c5d1 [2.0] Adding test coverage for ClassMetadataExporter 2009-10-05 22:09:29 +00:00
romanb
3d3bcc1742 [2.0][DDC-7] Fixed. 2009-09-15 12:24:38 +00:00
romanb
320d21e2be [2.0] Refactored classloader architecture. Renamed ClassLoader => GlobalClassLoader. Introduced IsolatedClassLoader that is suitable for participating in autoload stacks. Added 2 example entity classes to the sandbox with 2 xml mappings and 2 yaml mappings. Simplified sandbox setup. 2009-09-11 19:50:48 +00:00
jwage
d10daf35f2 [2.0] Changing Expr static methods to be normal public methods (closes #2466) 2009-09-08 22:19:03 +00:00
jwage
7aabee5efc [2.0] Fixing empty insert sql statements (closes #2481) 2009-09-08 19:31:26 +00:00
jwage
7c56bfa156 [2.0] Fixes issue with unique annotation on columns (closes #2476) 2009-09-08 18:12:01 +00:00
guilhermeblanco
e0012f0750 [2.0] Fixed test case. All in-memory changes should be flushed before querying. That's how it works in other ORM tools too 2009-09-06 14:27:38 +00:00
guilhermeblanco
05568fa259 [2.0] Added coverage to expected behavior of IdentityMap 2009-09-06 13:55:01 +00:00
romanb
49a24c4ef8 [2.0] Fixed #2478. 2009-09-06 08:48:44 +00:00
guilhermeblanco
0651397854 [2.0] Added coverage to ticket #2478. Could not get it to fail 2009-09-05 23:37:55 +00:00
romanb
f0da001770 [2.0] Fixed and enhanced tests. 2009-09-05 09:22:34 +00:00
guilhermeblanco
3ef0bf50e9 [2.0] Other fixes, removed E_FATAL of duplicate declaration and added test for Boolean type 2009-09-05 02:44:45 +00:00
romanb
a65ea05f01 [2.0] Fixed scale/precision support in SchemaTool 2009-09-04 20:31:11 +00:00
romanb
94c187685b [2.0] Work on CLI: Added SchemaToolTask with preliminary support for dropping/creating the database schema. Prepared the sandbox. Adjusted build to include the sandbox. 2009-08-31 16:21:29 +00:00
romanb
733c3c24f7 [2.0] Various necessary fixes and adjustments for oracle as well as fixes for better handling of temporal types. Closed #2452. 2009-08-28 17:25:28 +00:00
romanb
6a3aa84973 [2.0] Made MySqlPlatform default to innodb table engine. Some cleanups while investigating the optimistic locking failures. 2009-08-28 12:36:06 +00:00
jwage
b17ad38eed [2.0] Renaming LifecycleListener annotation to HasLifecycleCallbacks 2009-08-26 17:14:03 +00:00
romanb
8523648a27 [2.0] Fixed lifecycle callback mapping. 2009-08-25 09:14:08 +00:00
jwage
fd89892cc9 [2.0] Updating YAML and XML drivers to be synchronized with Annotations driver. 2009-08-24 21:05:55 +00:00
jwage
05d5fe4954 [2.0] Finishing optimistic locking with timestamp support 2009-08-24 17:06:12 +00:00
romanb
b1d34fca1c [2.0] Work on SchemaTool and DBAL. 2009-08-21 18:13:22 +00:00
guilhermeblanco
74af8a28ae [2.0] Removed *where*In methods from QueryBuilder. Finished decouple of QueryBuilder and Expr. Updated docs. 2009-08-20 03:21:39 +00:00
guilhermeblanco
842267c11c [2.0] Refactored pieces of QueryBuilder, it does not use string concatenation anymore. Splitted from into from and join, allowing update and delete DQLs to be correctly built. Added missing entry set. Removed Expr\Having because it was useless. Updated docs. 2009-08-20 02:59:42 +00:00
romanb
3d17cb0d60 [2.0] Applied fixes for character casing issues. Simplified inheritance mapping and improved handling of outer joins in Class Table Inheritance. 2009-08-17 17:58:16 +00:00
romanb
32069cc2b5 [2.0] More preparations to fix character casing issue. Reverted and completed ConditionalPrimary parsing and added more tests for this. 2009-08-16 16:36:00 +00:00
romanb
ebb432bfb8 [2.0] Preparing to address character casing issue. 2009-08-15 18:11:51 +00:00
guilhermeblanco
cf77048ee4 [2.0] Fixed issue with functions accepting subqueries. Implemented missing Expr\Join class. Added Expr::*join helper functions. 2009-08-14 22:50:36 +00:00
guilhermeblanco
b0202f2921 [2.0] Fixed issue with missing parenthesis in Math expressions 2009-08-14 21:03:27 +00:00
guilhermeblanco
c81affb9f7 [2.0] Some fixes in Expr. More documentation added. 2009-08-14 20:46:43 +00:00
romanb
e161103e4b [2.0] Added EntityRepositoryTest. Updated build file and XML Schema for mapping files. 2009-08-14 11:04:31 +00:00
romanb
7152da322f [2.0] Unified xml/yaml driver mapping tests so that there is a stronger enforcement on keeping them synchronized feature-wise. 2009-08-13 11:03:26 +00:00
romanb
e578bad687 [2.0] Fixed several referential integrity issues. Fixed critical issue with inserts being run twice on postgresql/oracle. Added support for additional tree walkers that modify the AST prior to SQL construction and started to play with it in a testcase. 2009-08-13 10:13:06 +00:00
romanb
8797921937 [2.0] Removed AssociationMappings from ResultSetMapping for improved caching. Fixed caching issue with reflection classes and properties. Reimplemented and leaned up broken identifier quoting. Added support for named (native) queries. Fixed small hydration memory leak. 2009-08-11 10:51:38 +00:00
guilhermeblanco
88698c3a78 [2.0] Created common Lexer code for Annotations parser and Query parser. Added some docblocks 2009-08-05 21:13:42 +00:00
romanb
f64347d899 [2.0] Implemented SQL generation for SIZE() function and EmptyCollectionComparisonExpression. 2009-08-05 15:47:41 +00:00
romanb
e67b30703b [2.0] Changed init() to __construct(). 2009-08-04 09:33:36 +00:00
romanb
0a497062c9 [2.0] Renamed some methods for a better API. 2009-08-03 17:18:37 +00:00
romanb
00599a80d4 [2.0] Streamlined result structures. Hydration improvements: Small overall improvements, large improvement for (joined) fetched collections (~60%). 2009-08-03 13:25:56 +00:00
romanb
e1f2b8abec [2.0] Implemented support for mapped superclasses. Fixed #2353. 2009-07-30 15:16:02 +00:00
romanb
92214eaf37 [2.0] Part II for ticket #2352. Fixed #2352. 2009-07-29 12:00:08 +00:00
romanb
2ec4cc5cbe [2.0] More cleanups for recent lazy-loading implementation and minor object hydration improvements and cleanups. Collection refactoring part I for ticket #2352. 2009-07-29 11:57:27 +00:00
romanb
62446f0f3c [2.0] Cleanup for changeset #6172. 2009-07-28 16:36:24 +00:00
piccoloprincipe
82c416686e [2.0] resolved hydrateAdd() recursivity 2009-07-28 12:30:35 +00:00
piccoloprincipe
c073f1d113 [2.0] completed implementation of lazy loading for Collections. Created debug helper class. Fixed default for orderBy clause to ASC 2009-07-28 11:43:42 +00:00
romanb
2807a83d5d [2.0] Started to simplify commit order calculation. 2009-07-27 09:50:22 +00:00
romanb
28ca2acb8b [2.0] Refined implementation and semantics of the merge and detach operations. General cleanups and API improvements. Added a testcase for detaching/serializing->unserializing->modifying->merging to demonstrate the transparent serialization. 2009-07-25 16:33:29 +00:00
romanb
da07bf4a37 [2.0] Small refactorings. 2009-07-24 11:33:38 +00:00
romanb
d674f1923d [2.0] Fixed #2373. Some small perf. improvements for UnitOfWork. 2009-07-23 09:52:16 +00:00
guilhermeblanco
b121576ff4 [2.0] Fixed DQL parser to use Query::HINT_FORCE_PARTIAL_LOAD instead of string. 2009-07-22 05:06:06 +00:00
guilhermeblanco
58a157863e [2.0] Finished reorganization of grammar rules in DQL parser source code. Renamed some private methods. 2009-07-22 03:46:05 +00:00
romanb
ae1b9371ec [2.0] Fixed #2366. 2009-07-21 15:53:58 +00:00
romanb
be0088f00c [2.0] Fix and test for result cache. 2009-07-21 10:48:19 +00:00
romanb
49434b0322 [2.0] Further cleanups. Started eager loading support. 2009-07-21 09:25:14 +00:00
guilhermeblanco
b3d110bac4 [2.0] Started massive reorganization of grammar rules in DQL parser. 2009-07-21 05:22:22 +00:00
romanb
a301834057 [2.0] First part of cleanup for changeset 6120. More to follow. 2009-07-20 15:30:54 +00:00
piccoloprincipe
0c623fdb9e [2.0] Accomodate joincolumn names in the metadata, in the selection and the hydration processes. Improved Api of the ProxyFactory. Working implementation of lazy loading for *-to-one associations (affects #2348) 2009-07-20 12:05:19 +00:00
romanb
7297ac7baa [2.0] Addressed #2363. 2009-07-19 16:54:53 +00:00
romanb
59cf1f745d [2.0] added entity lifecycle events. 2009-07-18 18:06:30 +00:00
guilhermeblanco
227667c95d [2.0] Changes in DQL grammar for optimization purposes. Implemented new DQL grammar rules and did a couple of TODOs 2009-07-18 14:53:21 +00:00
piccoloprincipe
3747365b1c [2.0] added tests for lazy loading; added error_reporting level; wired association proxy factory 2009-07-18 13:15:54 +00:00
romanb
b8090c99a3 [2.0] Moved locking tests into Functional namespace. Fixed several missing flush() calls in some functional association tests. Reordered DELETE statements for ecommerce model tests in OrmFunctionalTestCase in order to maintain referential integrity. Fixed issue with bi-directional self-referencing one-one associations. Some other small improvements and cosmetics. Small hydration performance improvement through inlining method call in UnitOfWork::createEntity(). 2009-07-18 11:41:37 +00:00
jwage
2085823661 [2.0] A few fixes and clean up to the Optimistic Locking implementation. 2009-07-17 21:55:56 +00:00
jwage
cc3ea569a4 [2.0] Initial version of optimistic locking with integer version columns 2009-07-17 18:13:03 +00:00
piccoloprincipe
c9b0328279 [2.0] fixed skipped tests by blocking phpunit autoloading 2009-07-17 14:10:21 +00:00
piccoloprincipe
129e13f5c5 [2.0] skipping test with mocked namespaced classes 2009-07-17 14:06:43 +00:00
piccoloprincipe
52d55da356 [2.0] working implementation of Association Proxy classes 2009-07-17 13:35:44 +00:00
piccoloprincipe
66f377fb12 [2.0] extended tests for proxy class generation 2009-07-17 12:43:37 +00:00
piccoloprincipe
a41bbbd7e1 [2.0] renamed classes to more descriptive names 2009-07-16 13:59:26 +00:00
piccoloprincipe
0b9a2e0c0b [2.0] working implementation of reference proxies 2009-07-16 13:20:31 +00:00
guilhermeblanco
55651ec902 [2.0] Updated semantical error to display token and text close to the found error. Some cosmetics applied. 2009-07-16 03:22:08 +00:00
jwage
c4e330e5ca [2.0] Placing loadClassMetadata() event so users can manipulate class meta data through events 2009-07-15 20:18:40 +00:00
romanb
0c8a35f731 [2.0] Cosmetics. 2009-07-15 06:46:43 +00:00
jwage
26bdd89be6 [2.0] Test coverage for OFFSET AND LIMIT sql generation for all platforms and Query class with setFirstResult() and setMaxResult() 2009-07-13 22:59:36 +00:00
jwage
ba8b4337bb [2.0] Cleanup on QueryBuilder and Expr from discussion with roman 2009-07-10 18:26:43 +00:00
jwage
f608dd8a72 [2.0] More work on the QueryBuilder and Expr classes. 2009-07-10 17:53:48 +00:00
jwage
312d347d2d [2.0] More work on the QueryBuilder and Expr classes 2009-07-10 14:02:06 +00:00
romanb
838768d21f [2.0] Small comments/todos on QueryBuilderTest. 2009-07-10 07:38:42 +00:00
jwage
a9ed0085d2 [2.0] More work on the QueryBuilder and Expr classes 2009-07-09 21:56:34 +00:00
jwage
867a34d41b [2.0] Initial commit of a QueryBuilder class. Still needs a lot of work. 2009-07-09 04:18:58 +00:00
piccoloprincipe
41df51a6e9 added tests for various WHERE clauses 2009-07-08 08:08:27 +00:00
piccoloprincipe
f11e39cc5a renamed and separated test methods to conform to agile documentation (addresses #2316) 2009-07-08 07:48:44 +00:00
romanb
9075f10bf5 [2.0] Moved cache drivers to Common package. Added new annotation parser implementation to Common package. AnnotationDriver in ORM not yet migrated. 2009-07-06 20:34:54 +00:00
piccoloprincipe
4910309674 added one-one self referential functional tests (closes #2276) 2009-07-06 12:42:14 +00:00
piccoloprincipe
ff115efbac added many-many self referential functional tests (affects #2276) 2009-07-06 12:18:04 +00:00
romanb
f064de2af1 [2.0] Fixed issue with self-referential one-to-many associations not being persisted correctly when IDENTITY key generation was used. Included now passing OneToManySelfReferentialTest. 2009-07-03 17:36:41 +00:00
piccoloprincipe
4e70e5d80a [2.0] added one-many self referential association test (addresses #2276) 2009-07-02 14:36:47 +00:00
romanb
31892fb4a8 [2.0] Fixed cascading issue (#2307). Fixed many-many object hydration issue. 2009-07-02 11:48:44 +00:00
piccoloprincipe
1b9b6c68e0 [2.0] added many-to-many uni and bi directional tests (affects #2276) 2009-07-02 09:37:59 +00:00
piccoloprincipe
2c508102c4 [2.0] addresses #2307 2009-07-02 07:47:57 +00:00
romanb
76661cd987 [2.0] Added missing property. 2009-07-01 13:50:26 +00:00
romanb
5b67754595 [2.0] Simplifying code. Including OneToManyBidirectionalAssociation test in AllTests 2009-07-01 13:45:31 +00:00
piccoloprincipe
1e0589928a [2.0] added new bidirectional one-many association test (affects #2276) 2009-07-01 13:11:45 +00:00
piccoloprincipe
8ccb7df1bb [2.0] added new unidirectional one-one association test 2009-07-01 12:03:41 +00:00
romanb
f1885cb76b [2.0] adjustments to new bidirectional one-one association test from Giorgio Sironi. 2009-07-01 10:04:22 +00:00
piccoloprincipe
4e50792a8d [2.0] references #2276 2009-07-01 09:18:08 +00:00
romanb
6729ed28e7 [2.0] Implemented DQL bulk UPDATE support for Class Table Inheritance. Corrections to MultiTableDeleteExecutor and SqlWalker. DQL bulk UPDATE support not yet fully complete. 2009-06-23 17:50:13 +00:00
romanb
537c8e4951 [2.0] Implemented DQL bulk DELETE support for Class Table Inheritance. Other cleanups, refactorings and docblock additions. 2009-06-22 18:48:42 +00:00
jwage
ab2b3999c0 [2.0] Adding date and time types. Fixing CURRENT_DATE, CURRENT_TIMESTAMP and CURRENT_TIME functions 2009-06-20 14:24:21 +00:00
jwage
ada2c5c5a7 [2.0] Work on datetime dbal type and date portability 2009-06-20 12:59:33 +00:00
romanb
f28127664c [2.0] Cleanups, build fixes. 2009-06-15 18:25:47 +00:00
romanb
104398003c [2.0] Parser work. 2009-06-14 17:34:28 +00:00
romanb
6e5a5068a6 [2.0] Converted constant values from strings to integers. 2009-06-07 17:20:37 +00:00
jwage
115e4d01f2 [2.0] Refactoring the meta data drivers and refactoring yaml/xml and adding tests for yaml. 2009-06-05 21:40:47 +00:00
piccoloprincipe
bdd2241fb5 set svn:eol-style property on plain text files 2009-06-02 18:05:26 +00:00
romanb
9837cd79ff [2.0] Fixed formatting. 2009-06-01 16:15:49 +00:00
romanb
d90e71d002 [2.0] First implementation of XmlDriver + tests. First draft of XSD document. 2009-06-01 16:14:11 +00:00
romanb
2b8091e80c [2.0] Code review with comments and small corrections. 2009-05-30 09:37:56 +00:00
romanb
f3677a5714 [2.0] Changed identifier quoting strategy to something simpler. Dropped Doctrine prefix from annotations. 2009-05-29 10:23:13 +00:00
romanb
a4e928e118 [2.0] Moved addendum library to vendor dir. 2009-05-28 21:06:24 +00:00
romanb
a758b56551 [2.0] Introduced SQL logging facilities. Made Type constructor private to prevent instantiation and force use of the factory method getType(). 2009-05-28 11:13:12 +00:00
romanb
d2405ded5d [2.0] Enhanced one-to-one self-referential association handling. 2009-05-26 15:42:54 +00:00
romanb
b66d530540 [2.0] Class table inheritance updates. Started work on self-referencing associations. 2009-05-26 11:30:07 +00:00
romanb
c9cc9f1373 [2.0] Parser code review with some cleanups and comments to highlight TODOs. 2009-05-24 10:38:37 +00:00
romanb
a421692679 [2.0] Fixed Query Cache (+testcase) and some E_STRICT errors. 2009-05-21 19:18:14 +00:00
romanb
55d70248a9 [2.0] Implemented class table inheritance (no DQL bulk UPDATE/DELETE support yet) 2009-05-21 08:53:40 +00:00
romanb
eb6c6b2d16 [2.0] Some small optimizations. 2009-05-19 16:24:17 +00:00
romanb
4f5b332d34 [2.0] Adding insert performance tests. 2009-05-19 16:11:08 +00:00
romanb
4d13925b1c [2.0] Some hydration and DQL parser work. 2009-05-17 19:27:12 +00:00
romanb
96ef7eca13 [2.0] More small internal perf. improvements. 2009-05-14 18:34:12 +00:00
romanb
eea4391598 [2.0] Started adding performance regression tests. More object hydration performance improvements. 2009-05-14 14:57:08 +00:00
romanb
e79c45f9ac [2.0] Fixed issues discovered during code coverage report generation. Made all ClassMetadata properties public (good reasons, read the class docblock). Performance improvements. 2009-05-14 10:03:09 +00:00
romanb
ecd30bc242 [2.0] Started to implement proxy object handling. Introduced a configuration switch for partial objects (allowPartialObjects) that defaults to TRUE. Setting to FALSE enables proxying and lazy-loading. 2009-05-13 15:19:27 +00:00
romanb
e0488ff8fc [2.0] First draft of EntityManager#merge(). First draft of DynamicProxyGenerator. 2009-05-11 10:43:27 +00:00
romanb
cfae81e11a [2.0] Fixed hydration for bi-directional many-many associations. 2009-05-07 16:36:27 +00:00
romanb
00c44b7c41 [2.0] Implemented many-to-many SQL join construction, small test included. 2009-05-07 13:54:01 +00:00
romanb
a6d9236ef2 [2.0] Fixes and enhancements to sequence generators. Test suite now runs & passes against postgres. Other minor, unrelated cleanups. 2009-05-05 17:20:55 +00:00
romanb
16c4efccd8 [2.0] DBAL streamlining and starting to increase test coverage. 2009-05-03 18:07:57 +00:00
romanb
80de567817 [2.0] Fixed issue in changeset calculation. 2009-05-03 11:49:48 +00:00
romanb
ae7be288e1 [2.0] Work on single table inheritance with more functional tests. 2009-05-03 10:58:16 +00:00
romanb
5a00a9472c Implemented three change tracking policys. First test for usage of NotifyPropertyChanged. 2009-04-24 21:08:59 +00:00
romanb
ee46dba332 [2.0] Moved code between Query and AbstractQuery. Added first NativeQuery implementation. Hydration work and code movements for discriminator column usage. Started implementing Single Table Inheritance. 2009-04-12 19:02:12 +00:00
romanb
523c93c2f1 [2.0] Refactored SQL query building process and hydration. Hydration should now support result sets with any number of root components. Introducing ResultSetMapping that is used by hydration instead of queryComponents. This allows mapping of arbitrary SQL queries (NativeQuery). 2009-04-09 18:12:48 +00:00
romanb
62204af804 [2.0] Ongoing work on Query/DQL implementation and tests. 2009-04-03 11:06:58 +00:00
romanb
f9a222817c [2.0] Work on ID generators, functional tests and more. 2009-03-30 19:43:05 +00:00
romanb
7479a0cf9b [2.0] Starting to improve functional tests. First basic functional query tests. 2009-03-28 20:59:07 +00:00
romanb
705199e897 [2.0] Parser work. Added support for functions in SelectExpressions. 2009-03-28 17:10:41 +00:00
romanb
ae5d212271 [2.0] Parser work. Added double-dispatch functionality to AST node classes for use in the SqlWalker to reduce big if/else instanceof checks and for better maintainability. Also its less error-prone in the SqlWalker because its harder to miss a conditional case. Added new extensible DQL function implementation. 2009-03-23 17:39:33 +00:00
romanb
618c1281e4 [2.0] Parser work. 2009-03-21 19:58:52 +00:00
romanb
d833ee1464 [2.0] Parser work. Drafted logic for multi-table deletes through DQL (for Class/Concrete Table Inheritance) 2009-03-21 12:49:58 +00:00
romanb
c7dbde9f89 [2.0] Parser work. 2009-03-20 21:28:19 +00:00
romanb
89a625021a [2.0] Refactored and reenabled Lexer tests. 2009-03-20 20:53:14 +00:00
romanb
b718cd1a63 [2.0] Parser work. 2009-03-19 12:43:48 +00:00
romanb
bffd76d704 [2.0] Parser work. 2009-03-16 22:12:38 +00:00
romanb
bc379103c3 [2.0] Some more parser work. 2009-03-14 21:19:50 +00:00
romanb
22de495e19 [2.0] Cleaned up old Production/Parser classes. 2009-03-14 09:05:52 +00:00
romanb
62779913c8 Started to reenable query language recognition tests. 2009-02-18 10:39:51 +00:00
jwage
68147808f6 [2.0] Cleaning up tests and removing some unused files to remove any confusion 2009-02-18 07:59:11 +00:00
romanb
87fd08e427 [2.0] Some fixes for ClassExporterTest. 2009-02-17 12:25:03 +00:00
romanb
32d43c365f Removed 'name' attribute from EntityManager since it's not needed. 2009-02-17 11:02:11 +00:00
romanb
2ef81cf2a9 [2.0] Various small changes and enabling the collection tests. 2009-02-17 10:54:18 +00:00
jwage
4dc5a4baf5 [2.0] Removing unused code and committing a little 2.0 documentation 2009-02-17 02:43:40 +00:00
jwage
f4719b290b [2.0] Adding test for the ClassExporter 2009-02-17 01:55:09 +00:00
jwage
45079a1e98 [2.0] Refactoring ClassExporter to allow the getting of the generated sql as well as executing it 2009-02-17 01:54:11 +00:00
romanb
9dcab5ee63 Small reorganizations, improvements and progress. 2009-02-07 17:02:13 +00:00
romanb
2eb4a16dd4 [2.0] More progress on the UnitOfWork and collections. First basic functional many-many test. 2009-02-06 17:16:39 +00:00
romanb
deb095f2c8 Some cleanups, docblocks, and a small needed refactoring of ClassMetadataFactory. 2009-02-05 17:34:44 +00:00
romanb
886c961108 [2.0] Continued work on association mappings and class exporting (DDL generation). Fixed #1863. 2009-02-04 16:35:36 +00:00
romanb
e202cb1ce1 [2.0] Progress on UnitOfWork, persisters and basic functional tests. 2009-02-02 11:55:50 +00:00
romanb
36763dadb6 A little progress on the UnitOfWork. 2009-01-29 17:00:44 +00:00
romanb
0ac97e7adf [2.0] Making use of new constant __DIR__ 2009-01-24 16:56:44 +00:00
romanb
22e94ac594 Enabling namespaces. Final restructurings. 2009-01-22 19:38:10 +00:00