Skip to content

Add support for magic properties#810

Open
danog wants to merge 6 commits into
CuyZ:masterfrom
danog:magic_properties
Open

Add support for magic properties#810
danog wants to merge 6 commits into
CuyZ:masterfrom
danog:magic_properties

Conversation

@danog

@danog danog commented May 19, 2026

Copy link
Copy Markdown
Contributor

Submitting this to fully upstream changes in the valinor fork of one of my clients.

While currently Valinor does not make use of the new magicProperties property, it is currently used by one of my clients to implement automatic type validation for their ORM, which relies exclusively on magic properties, specifically by taking all properties, compiling them via PropertyDefinitionCompiler::compile and storing them in a single static cache class, regenerated on every build.

While I know this is technically using an @internal API, the current caching options offered by Valinor are suboptimal in our case, where a simple static cache is enough , and much more performant than the alternatives.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant