orisai / object-mapper

Raw data mapping to validated objects
Mozilla Public License 2.0
10 stars 1 forks source link

Efficient validation of multiple queried values rule #38

Closed mabar closed 1 year ago

mabar commented 1 year ago
class Example extends MappedObject
{

    /** @var list<User> */
    #[ArrayOf(
        new EntityFromId('user', User::class, new IntValue())
    )]
    public array $users;

}
mabar commented 1 year ago

Experimentally implemented in https://github.com/orisai/object-mapper/commit/acc525e7fc1281b6ab04a4931d356afd3918e034

Still needs some tests.

mabar commented 1 year ago

All done and it works great 😎

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.