Mechanism of "create_time" "edit_time" in Yii?

Hi!

Is the built in mechanism in Yii to automatic operation over “create_time” and “edit_time” fields in tables where it’s needed?

I used it in other frameworks like CakePHP or Symfony. I like Yii and I’m building my first app with Yii now and I need this function in many tables and I dont want to spend my time to copy-paste functions in any model…

yes there is

You can also do without php at all, just in database.

Simply add a timestamp field with default current_timestamp