In: Implementing Events in the Model’s class it describes how we can use beforeCreate() and beforeUpdate() in the model to perform setting a timestamp to a created and modified date column.
I currently use database triggers to perform these operations and as a result in the model in the initizlize I write:
I note that if you use database triggers phalcon messaging becomes redundant where database triggers are used over model events.
Are there any really good reasons I should move my database triggers out of the database and translate them into events in the model class.
What are the advantages of using database triggers? Performance?
Is this just a style issue? Or is implementing in the model class a fundamentlal approach which benefits MVC?