Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User extends ActiveRecord\Model
- {
- public static $table_name = 'user';
- public static $primary_key = 'user_id';
- public function before_create()
- {
- $this->user_created = date('Y-m-d', strtotime('now'));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement