Revision: Fri, 20 Dec 2024 23:34:11 GMT

Introduction

What is Cycle Active Record?

This library extends Cycle ORM by integrating the Active Record pattern, providing developers with an intuitive, object-centric way to interact with databases.

Unlike Cycle ORM's default Data Mapper pattern, which separates the in-memory object representations from database operations, Active Record in general combines database operations and data projection in a single entity.

This allows for more straightforward and rapid development cycles, particularly for simpler CRUD operations, by enabling direct data manipulation through the object's properties and methods.

Note Using the Active Record pattern does not require placing business logic inside entities. Use Active Record for prototyping, speeding up development, and simplifying code. And yes, the flexibility of Cycle ORM allows you to elegantly apply both patterns simultaneously.

Key Features

  1. Full compatibility: All Cycle ORM features are supported.
  2. High speed development: Access to CRUD operations through Entity class methods and properties.
  3. New features: Active Query, Active Repository, and more.
  4. Easy to use: Easy to install, learn, and use.

Contributing

The Active Record component is in active development. Any feedback and ideas are welcome. Read our contributing guidelines to get started.

Edit this page