Skip to content

Feat: Use mapped attributes as property object #26

@neznaika0

Description

@neznaika0

Additional context
I'm trying to use strict entities in the project and restrict calling mapped attributes:
$u->name is not allowed, $u->username is allowed if $datamap['name'] = 'username' .

The library currently uses the old version of $u->{$attribute}.
I understand it doesn't make sense for a framework. Can you think of something for my case? Given the requirement not to call mapped attributes as object properties.
$u->mapProperty(...) is a method, but it is protected.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions