Skip to content

Releases: Planetbiru/MagicObject

2.1.0

20 Oct 14:34
Compare
Choose a tag to compare

MagicObject 2.1 introduces package annotations for entities, enhancing the process of joining them. These annotations are essential, as the namespace is required to properly join entities. The join class should be referenced by its base name only, without the namespace; otherwise, MagicObject may fail to recognize the class.

PHP does not provide a native method to retrieve a class's namespace. Earlier versions of MagicObject attempted to obtain this information by reading the PHP script, a method that proved both unsafe and inefficient.

With the addition of package annotations to each entity, MagicObject now offers a safer and more efficient way to join entities. However, if a package annotation is not available on an entity, version 2.1 will still revert to the old method.

MagicObject 2.1 introduces a suite of powerful database utilities aimed at enhancing database management and interoperability. One of the key features is the ability to seamlessly convert databases between PostgreSQL and MySQL, enabling developers to migrate their data and applications with ease. This conversion tool ensures that data types, constraints, and structures are accurately translated, reducing the potential for errors during migration.

Additionally, MagicObject 2.1 allows users to parse table structures directly from SQL statements without the need to first dump them into a database. This functionality streamlines the process of understanding and manipulating database schemas, making it easier for developers to work with existing SQL code or to integrate with third-party systems.

These utilities not only enhance efficiency but also provide a robust foundation for database development, allowing users to focus on building applications rather than wrestling with database compatibility issues. With MagicObject 2.1, database management becomes more intuitive and accessible, empowering developers to harness the full potential of their data.

Full Changelog: 2.0.0...2.1.0

2.0.0

20 Oct 02:58
Compare
Choose a tag to compare

MagicObject Version 2

What is New

  1. Native Query

    • Introduced support for native SQL queries, allowing users to execute raw SQL statements directly within the framework. This feature enhances flexibility and provides greater control over complex queries that may not be easily constructed using the ORM layer.
  2. Multiple Database Connection

    • Added the ability to configure and manage multiple database connections. This allows developers to connect to different databases within the same application seamlessly, facilitating multi-database architectures and more complex application requirements.
  3. Enable or Disable Entity Cache on Join

    • Introduced a feature to enable or disable entity caching specifically for join operations. This gives developers fine-tuned control over caching strategies, improving performance while also allowing for fresh data retrieval when necessary.
  4. Enhanced Documentation

    • Comprehensive updates to the documentation for classes, properties, functions, and annotations. This includes clearer explanations, examples, and usage guidelines, making it easier for developers to understand and utilize the framework effectively.
  5. Bug Fixes on Previous Version

    • Addressed various bugs and issues reported in earlier versions. This includes performance improvements, stability enhancements, and corrections of minor errors that could affect the functionality of the framework.

Additional Features

  • Improved Error Handling: Enhanced mechanisms for error detection and handling, providing more informative messages to assist developers in troubleshooting.
  • Performance Optimizations: Various internal optimizations that improve the overall performance of the framework, particularly in database interactions.
  • Backward Compatibility: Ensured backward compatibility with version 1, allowing for a smooth transition for existing users to upgrade without significant changes to their codebase.

Migration Notes

  • When upgrading from version 1 to version 2, please review the migration notes for any breaking changes or required adjustments to your codebase. Detailed guidelines are provided to facilitate a smooth upgrade process.

Full Changelog: 1.23.7...2.0.0

1.23.7

13 Oct 12:46
Compare
Choose a tag to compare

Full Changelog: 1.23.6...1.23.7

1.23.6

13 Oct 04:57
Compare
Choose a tag to compare

Full Changelog: 1.23.5...1.23.6

1.23.5

13 Oct 00:08
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.23.4...1.23.5

1.23.4

12 Oct 17:06
Compare
Choose a tag to compare

Full Changelog: 1.23.3...1.23.4

1.23.3

12 Oct 12:27
Compare
Choose a tag to compare

Full Changelog: 1.23.2...1.23.3

1.23.2

12 Oct 11:21
Compare
Choose a tag to compare

Full Changelog: 1.23.1...1.23.2

1.23.1

12 Oct 06:59
Compare
Choose a tag to compare

Full Changelog: 1.23.0...1.23.1

1.23.0

12 Oct 05:24
Compare
Choose a tag to compare

Full Changelog: 1.22.4...1.23.0