Skip to content

Commit 6fe5139

Browse files
committed
ActiveRow, Selection: added getExplorer()
1 parent 524afce commit 6fe5139

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/Database/Table/ActiveRow.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ public function getTable(): Selection
5050
}
5151

5252

53+
public function getExplorer(): Nette\Database\Explorer
54+
{
55+
return $this->table->getExplorer();
56+
}
57+
58+
5359
public function __toString(): string
5460
{
5561
return (string) $this->getPrimary();

src/Database/Table/Selection.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ public function getSqlBuilder(): SqlBuilder
174174
}
175175

176176

177+
public function getExplorer(): Explorer
178+
{
179+
return $this->explorer;
180+
}
181+
182+
177183
/********************* quick access ****************d*g**/
178184

179185

0 commit comments

Comments
 (0)