|
| 1 | +# Cycle ORM Context Configuration |
| 2 | +# Main configuration file with project overview and references to detailed component documentation |
| 3 | + |
| 4 | +# Cycle ORM is a powerful PHP Object-Relational Mapping (ORM) library that provides a comprehensive |
| 5 | +# solution for database interactions with a focus on performance, flexibility, and developer experience. |
| 6 | + |
| 7 | +import: |
| 8 | + - path: context/core-architecture.yaml |
| 9 | + description: Core interfaces and architectural contracts that define the ORM foundation |
| 10 | + - path: context/entity-management.yaml |
| 11 | + description: Entity lifecycle management, heap system, and ORM facade |
| 12 | + - path: context/mapping-system.yaml |
| 13 | + description: Data mapping, typecasting, proxy generation, and entity hydration |
| 14 | + - path: context/relation-system.yaml |
| 15 | + description: Complete relationship system including all relation types and references |
| 16 | + - path: context/query-system.yaml |
| 17 | + description: Query building, data loading strategies, and repository pattern |
| 18 | + - path: context/transaction-system.yaml |
| 19 | + description: Transaction management, command pattern, and Unit of Work implementation |
| 20 | + - path: context/collections-and-factory.yaml |
| 21 | + description: Collection management and dependency injection container system |
| 22 | + - path: context/schema-and-config.yaml |
| 23 | + description: Schema definitions, configuration management, and supporting utilities |
| 24 | + - path: context/traits-and-utilities.yaml |
| 25 | + description: Shared traits and utility components used across the ORM system |
| 26 | + |
| 27 | +documents: |
| 28 | + - description: Cycle ORM project overview with complete architecture summary |
| 29 | + outputPath: project/overview.md |
| 30 | + sources: |
| 31 | + - type: text |
| 32 | + content: | |
| 33 | + # Cycle ORM - Project Overview |
| 34 | +
|
| 35 | + Cycle ORM is a powerful PHP Object-Relational Mapping (ORM) library that provides a comprehensive solution for database interactions with a focus on performance, flexibility, and developer experience. |
| 36 | +
|
| 37 | + ## Key Features |
| 38 | + - **Entity Management**: Complete entity lifecycle management with heap-based tracking |
| 39 | + - **Flexible Relations**: Support for all relationship types including polymorphic relations |
| 40 | + - **Query Builder**: Powerful and flexible query building capabilities |
| 41 | + - **Transaction Management**: Robust transaction handling with Unit of Work pattern |
| 42 | + - **Collection Support**: Multiple collection implementations (Doctrine, Laravel, etc.) |
| 43 | + - **Lazy Loading**: Efficient lazy loading with proxy objects |
| 44 | + - **Schema Management**: Comprehensive schema definition and management |
| 45 | +
|
| 46 | + ## Architecture Principles |
| 47 | + - **Interface-Driven Design**: Heavy use of interfaces for flexibility and testability |
| 48 | + - **Dependency Injection**: Built-in factory and DI container system |
| 49 | + - **Command Pattern**: Database operations handled through command objects |
| 50 | + - **Repository Pattern**: Clean data access layer abstraction |
| 51 | + - **Heap Pattern**: Efficient entity tracking and identity management |
| 52 | +
|
| 53 | + ## Component Documentation |
| 54 | +
|
| 55 | + This project is organized into several functional components, each documented separately: |
| 56 | +
|
| 57 | + - **Core Architecture**: Fundamental interfaces and contracts ([core-architecture.md](core-architecture.md)) |
| 58 | + - **Entity Management**: ORM facade and entity lifecycle ([entity-management.md](entity-management.md)) |
| 59 | + - **Data Mapping**: Mappers, typecasting, and hydration ([mapping-system.md](mapping-system.md)) |
| 60 | + - **Relations**: All relationship types and references ([relation-system.md](relation-system.md)) |
| 61 | + - **Query System**: Query building and data loading ([query-system.md](query-system.md)) |
| 62 | + - **Transactions**: Command pattern and persistence ([transaction-system.md](transaction-system.md)) |
| 63 | + - **Collections**: Collection management and DI ([collections-and-factory.md](collections-and-factory.md)) |
| 64 | + - **Schema**: Configuration and metadata ([schema-and-config.md](schema-and-config.md)) |
| 65 | + - **Utilities**: Shared traits and helpers ([traits-and-utilities.md](traits-and-utilities.md)) |
| 66 | +
|
| 67 | + - type: tree |
| 68 | + description: Complete project structure with component descriptions |
| 69 | + sourcePaths: src |
| 70 | + maxDepth: 3 |
| 71 | + includeFiles: true |
| 72 | + showSize: true |
| 73 | + dirContext: |
| 74 | + src/Collection: "Collection management and factory implementations" |
| 75 | + src/Command: "Command pattern for database operations" |
| 76 | + src/Exception: "Exception hierarchy for error handling" |
| 77 | + src/Heap: "Entity tracking and identity management" |
| 78 | + src/Mapper: "Data mapping and entity hydration" |
| 79 | + src/Parser: "Data parsing and typecasting" |
| 80 | + src/Relation: "Entity relationship implementations" |
| 81 | + src/Reference: "Lazy loading and reference management" |
| 82 | + src/Select: "Query building and data loading" |
| 83 | + src/Service: "Service layer implementations" |
| 84 | + src/Transaction: "Transaction management and Unit of Work" |
0 commit comments