Core package documentation
The foundation of Small Swoole Entity Manager: entity metadata, managers, relational builders, persistence coordination, lifecycle hooks and database drivers. This documentation was checked against the supplied 2.7.1 source archive.
Understand the main components before configuring the ORM.
Chapter 1 Get startedInstall the package and create a first manager and mapped entity.
Chapter 2 Entities and fieldsMap identifiers, scalar values, dates and custom field behavior.
Chapter 3 Relations and collectionsModel one-to-one, one-to-many and composite relation graphs.
Chapter 4 Select query builderBuild relational reads with joins, filters and mapped results.
Chapter 5 Update builderApply targeted updates without hydrating complete entities.
Chapter 6 Delete builderDelete rows with explicit filters and controlled query construction.
Chapter 7 Forms and validationFill entities from input and validate them with Small Forms.
Chapter 8 Database layersTrack schema evolution and execute generated database changes.
Chapter 9 Transactions and persistence threadsCoordinate atomic work and concurrent persistence operations.
Chapter 10 Backups and change detectionDetect modified state and protect persistence workflows.
Chapter 11 Lifecycle hooks and bulk operationsRun callbacks around persistence and optimize grouped work.
Chapter 12 Runtime and connection driversConfigure MySQL, PostgreSQL and Small Swoole DB runtimes.