Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Attribute to set type_map instead of config #136

Open
gabplch opened this issue Apr 25, 2024 · 2 comments
Open

Use Attribute to set type_map instead of config #136

gabplch opened this issue Apr 25, 2024 · 2 comments

Comments

@gabplch
Copy link

gabplch commented Apr 25, 2024

In new Symfony version a lot of configs are migrationg to attributes. What about to make smae this in this bundle?

E.g. wa have POPO model FooBar:

#[TypeMap('foo_bar')]
class FooBar {
     private string $someProperty;
}
@gabplch
Copy link
Author

gabplch commented Apr 25, 2024

If this case is ok for you, I can make PR, when will have some free time

@dunglas
Copy link
Owner

dunglas commented Apr 25, 2024

Good idea. PR welcome!

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

No branches or pull requests

2 participants