Hi,
I want to augment the Member classes functionality wit the DataObjectDecorator by adding new methods and properties. I also want to augment the onAfterWrite() hook with the DataObjectDecorator but i presume that the existing hook of the Member class will be overwritten if I define the hook on the DataObjectDecorator.
How can I add something to a hook via a DataObjectDecorator?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
That doesn't happen at all :)
You can add methods that don't already exist, but you can't override methods. If a method calls $this->extend(), you can provide a method that'll get called then (the name of the method you can provide is the first argument).
Thanks for Your help, simon, I´ll try that.