Skip to content

Commit

Permalink
rem insane replace
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Feb 26, 2021
1 parent 5722838 commit 3292b3a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ protected function initTableAlias(): void

$this->table_alias = $this->link;
$this->table_alias = preg_replace('~_(' . $ourModel->id_field . '|id)~', '', $this->table_alias);
$this->table_alias = preg_replace('~([a-z])[a-z]*[^a-z]*~i', '$1', $this->table_alias);
if (isset($ourModel->table_alias)) {
$this->table_alias = $ourModel->table_alias . '_' . $this->table_alias;
}
Expand Down

0 comments on commit 3292b3a

Please sign in to comment.