Skip to content

Add generics to primary classes - #163

Merged
nilmerg merged 1 commit into
mainfrom
basic-generic-support
Aug 4, 2026
Merged

Add generics to primary classes#163
nilmerg merged 1 commit into
mainfrom
basic-generic-support

Conversation

@nilmerg

@nilmerg nilmerg commented Jul 21, 2026

Copy link
Copy Markdown
Member

Query instances, such as those for eagerly loaded relations can now use Query<$TargetClass> to get better code inspection hints in PHPStorm when code accesses said properties.

The partial application is deliberate to jump-start it and get a feel for it in projects using the ORM.

@cla-bot cla-bot Bot added the cla/signed label Jul 21, 2026
@nilmerg
nilmerg force-pushed the basic-generic-support branch 5 times, most recently from c748ce8 to f235c84 Compare August 4, 2026 13:03
Query instances, such as those for eagerly loaded relations can
now use `Query<$TargetClass>` to get better code inspection hints
PHPStorm when code accesses said properties.
@nilmerg
nilmerg force-pushed the basic-generic-support branch from f235c84 to e009789 Compare August 4, 2026 13:32
@nilmerg

nilmerg commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

Merging. It's only phpdoc related and verified using Claude.

@nilmerg
nilmerg merged commit 77d6b34 into main Aug 4, 2026
13 checks passed
@nilmerg
nilmerg deleted the basic-generic-support branch August 4, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant