I'm using Phalcon 4.0.4 now and looking at documentation, it is suggested to use public
methods when adding events like beforeUpdate
. But looking at cphalcon source code it seems, that these methods are called from inside model only.
So my question is, will there be any drawback when using protected function beforeUpdate()
instead of public function beforeUpdate
? And does this apply to all model events?