lonnieezell / Bonfire2

CodeIgniter 4-based application skeleton
MIT License
127 stars 49 forks source link

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

Closed dgvirtual closed 2 months ago

dgvirtual commented 4 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?