Hi, I am struggling to make a custom behavior and to call it from models.
My idea is to put time-formatting functions in a behavior so it can be called from other models.
But I have no idea about how to call a method of the behavior.
In the reference about "Blameable behavior"(https://blog.phalcon.io/post/47652831003/tutorial-creating-a-blameable-behavior-with-phalcon), for example, it says you are supposed to call behavior's method with Validation Events like beforeCreate. But I want to use Behavior when finding
I searched out the usage of Behavior, and found SoftDelete, and Timestampable Behavior, which are also used with Validation Events.
Is there a diffferent way to access Behavior? Or can i create a custom event to call from any lines you like?
I am wondering Behavior is only available with Valication Events in PhalconPHP, not like cakephp that provides a flexible usage of Behavior.
Hope you have an answer