Skip to content

Commit

Permalink
DEV: remove/deprecate insertRecords() : some models where ist unused
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed Feb 3, 2018
1 parent fcfec85 commit bd2bbd4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/models/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ public function getLabelCodeInfo($lid)
return Yii::app()->db->createCommand()->select('code, title, sortorder, language, assessment_value')->order('language, sortorder, code')->where('lid=:lid')->from($this->tableName())->bindParam(":lid", $lid, PDO::PARAM_INT)->query()->readAll();
}

/**
* @param $data
* @deprecated at 2018-02-03 use $model->attributes = $data && $model->save()
*/
public function insertRecords($data)
{
$lbls = new self;
Expand Down
5 changes: 5 additions & 0 deletions application/models/SavedControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ public function deleteSomeRecords($condition)
return $record->deleteAll($criteria);
}

/**
* @param $data
* @return mixed
* @deprecated at 2018-02-03 use $model->attributes = $data && $model->save()
*/
public function insertRecords($data)
{
return $this->db->insert('saved_control', $data);
Expand Down
5 changes: 5 additions & 0 deletions application/models/UserGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public function relations()
);
}

/**
* @param $data
* @return mixed
* @deprecated at 2018-02-03 use $model->attributes = $data && $model->save()
*/
public function insertRecords($data)
{
return $this->db->insert('user_groups', $data);
Expand Down
1 change: 1 addition & 0 deletions application/models/UserInGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function relations()
/**
* @param array $data
* @return bool
* @deprecated at 2018-02-03 use $model->attributes = $data && $model->save()
*/
public function insertRecords($data)
{
Expand Down

0 comments on commit bd2bbd4

Please sign in to comment.