コード例 #1
0
 /**
  * Delete by key
  *
  * @param UserIssue $entity User key entity
  *
  * @return $this
  */
 public function deleteByKey(UserIssue $entity)
 {
     $delete = $this->_sql->delete();
     $delete->from($entity->getTableName())->where([UserIssue::COLUMN_KEY_ID => $entity->getKeyId()]);
     $this->_executeSql($this->_sql, $delete);
 }
コード例 #2
0
 /**
  * Delete Redmine user issues
  *
  * @param number $keyId Redmine key ID
  *
  * @return void
  */
 protected function _deleteRedmineUserIssues($keyId)
 {
     $this->_userIssue->setKeyId($keyId)->deleteByKey();
 }