Repository navigation
This release (v1.2.5) encompasses all the major architectural improvements, the new CodeIgniter 4 Events integration, PSR-4 compliance, and new query functionalities introduced since v1.2.2.
✨ Features & Enhancements
WHERE INClause Support (v1.2.5): Enhanced theCommonModel::listsmethod to supportWHERE INqueries, providing more flexibility for multi-value filtering.- CodeIgniter 4 Events Integration (v1.2.4): Integrated
CodeIgniter\Events\Events::trigger()for database operations. You can now use event listeners for thecreate,edit, andremovecommands triggered via the model. - Array Result Support (v1.2.3): Added the capability to return database query results as an
arrayinstead of anobject.
🛠️ Refactoring & Architectural Changes
- PSR-4 Structure Compliance (v1.2.4): Completely refactored the package structure. The
CommonModel.phpfile has been moved to thesrc/directory, and the namespace has been updated toci4commonmodel. isResetHandling Improvement (v1.2.3): ImprovedCommonModelto better handlenulloptions for the 'isReset' property and fixed potential edge cases.
📚 Documentation & Build
- Documentation Overhaul (v1.2.4): Upgraded phpDocumentor to v3.9.1 and rebuilt the documentation using the "clean" template. Converted PHPDoc
@exampleblocks to Markdown code blocks for better HTML rendering. - Linter & Readme Fixes (v1.2.4): Fixed linter warnings and updated outdated namespace references within the
readme.md. - Export-Ignore Rules (v1.2.3): Added a
.gitattributesfile to exclude unnecessary development files and directories (export-ignore) from production distribution archives.
use statements (e.g., use ci4commonmodel\CommonModel;) wherever you instantiate the class in your project!
Full Changelog: 1.2.2...1.2.5