Extend EntryModel stub
girvydas - 11 months ago
I am building activitylog-extension and I want to extend generated Stream model with Trait, but i cant do that because bindings: 'Anomaly\Streams\Platform\Entry\EntryModel' => 'Demo\DemoExtension\Entry\EntryModel', are not working. I found that Anomaly\Streams\Platform\Entry\Command\GenerateEntryModel class is generating for example 'ContactsContactsEntryModel' class from 'resources/stubs/models/entry.stub' and in that file i can not add more traits or extend other class. How can I override that funcionality?