Skip to content

Commit

Permalink
entries table is aliased
Browse files Browse the repository at this point in the history
  • Loading branch information
i-just committed Nov 19, 2024
1 parent 2233b27 commit 39635c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/Entries.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
use craft\models\Structure;
use craft\queue\jobs\ApplyNewPropagationMethod;
use craft\queue\jobs\ResaveElements;
use craft\records\Entry as EntryRecord;
use craft\records\EntryType as EntryTypeRecord;
use craft\records\Section as SectionRecord;
use craft\records\Section_SiteSettings as Section_SiteSettingsRecord;
Expand Down Expand Up @@ -979,7 +978,7 @@ private function _ensureSingleEntry(Section $section, ?array $siteSettings = nul
if ($entry === null) {
$entry = $baseEntryQuery
->trashed(null)
->where([EntryRecord::tableName() . '.[[deletedWithEntryType]]' => 1])
->where(['entries.deletedWithEntryType' => 1])
->one();

if ($entry !== null) {
Expand Down

0 comments on commit 39635c4

Please sign in to comment.