예제 #1
0
 public function delete()
 {
     // Try create column name
     if (Profile::model()->columnExists($this->profileField->internal_name)) {
         $sql = "ALTER TABLE profile DROP `" . $this->profileField->internal_name . "_hide_year`;";
         $this->profileField->dbConnection->createCommand($sql)->execute();
     }
     return parent::delete();
 }