I'm working with Bolt CMS on a project. It seems great so far, but it looks like the Bolt team has been a bit cautious about switching from annotation mappings to attribute mappings, as when I use make:entity
, I get this message:
[ERROR] Only attribute mapping is supported by make:entity, but the App\Entity\CommunityMember class uses a different format. If you would like this command to generate the properties & getter/setter methods, add your mapping configuration, and then re-run this command with the --regenerate flag.
Since Bolt's annotations are all in vendor files, I can't simply change them to attributes. I could have sworn that I had at one point run into a composer package that explicitly re-allows the maker bundle to work with annotation mappings as a stopgap, but now I can't seem to find it.
Can someone give me the name of that composer package, assuming it exists?
(Bonus points if you can show me a way to change doctrine.yaml
such that it will support both types of mappings. Then I could write my new classes using attributes while not breaking backward compatibility.)