Skip to content

Release v1.2.5

Latest

Choose a tag to compare

@bertugfahriozer bertugfahriozer released this 19 May 14:28
· 1 commit to master since this release

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 IN Clause Support (v1.2.5): Enhanced the CommonModel::lists method to support WHERE IN queries, 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 the create, edit, and remove commands triggered via the model.
  • Array Result Support (v1.2.3): Added the capability to return database query results as an array instead of an object.

🛠️ Refactoring & Architectural Changes

  • PSR-4 Structure Compliance (v1.2.4): Completely refactored the package structure. The CommonModel.php file has been moved to the src/ directory, and the namespace has been updated to ci4commonmodel.
  • isReset Handling Improvement (v1.2.3): Improved CommonModel to better handle null options 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 @example blocks 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 .gitattributes file to exclude unnecessary development files and directories (export-ignore) from production distribution archives.

⚠️ Upgrade Notice: Due to the PSR-4 / Namespace and directory structure changes introduced in v1.2.4, please make sure to update your use statements (e.g., use ci4commonmodel\CommonModel;) wherever you instantiate the class in your project!

Full Changelog: 1.2.2...1.2.5