TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'], ] ] ]; } /** * {@inheritdoc} */ public function rules() { return [ [['store_id', 'user_id', 'parent_user_id', 'parent_store_id', 'created_at'], 'integer'], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'store_id' => 'Store ID', 'user_id' => 'user_id', 'parent_user_id' => 'parent_user_id', 'parent_store_id' => 'parent_store_id', 'created_at' => 'Add Time', ]; } }