Skip to content

Conversation

petrparolek
Copy link
Contributor

@petrparolek petrparolek commented Apr 24, 2025

fix for #120

@f3l1x f3l1x requested a review from Copilot June 14, 2025 12:33
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the ORM DI extension schema to allow the mapping configuration to be empty, restoring compatibility with nettrine/orm versions ≤ 0.9.

  • Removed the required and custom assertion enforcing at least one mapping entry.
  • Adjusted the schema to accept an empty array for mapping.
Comments suppressed due to low confidence (2)

src/DI/OrmExtension.php:130

  • Update the docblock or inline comments above this schema definition to note that mapping may now be an empty array, matching legacy behavior.
Expect::string()

src/DI/OrmExtension.php:130

  • Add or update a test case to verify that an empty mapping configuration is accepted and does not cause errors at runtime.
Expect::string()

@f3l1x
Copy link
Member

f3l1x commented Jun 14, 2025

bugbot run

@petrparolek
Copy link
Contributor Author

????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants