lonnieezell / Bonfire2

CodeIgniter 4-based application skeleton
MIT License
132 stars 50 forks source link

Hardcoded config class prevents syncMeta() method being used outside Users module #426

Closed dgvirtual closed 6 months ago

dgvirtual commented 8 months ago

https://github.com/lonnieezell/Bonfire2/blob/4418346ee1b7fafc9491fd248021fabddc1ac089/src/Core/Traits/HasMeta.php#L192

I am not quite sure how to go about fixing this; most obvious seems to be repeating what is done in metaValidationRules() method - where the class name is provided as an argument. But could perhaps an entity class variable, inherited by trait HasMeta, be used?