Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Update RecordSelector.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j authored Mar 15, 2017
1 parent 0f8e7dc commit 60c4e2e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/Spiral/ORM/Entities/RecordSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,16 @@ public function compiledQuery(): SelectQuery
{
return $this->loader->compiledQuery();
}

/**
* Compiled SQL statement.
*
* @return string
*/
public function sqlStatement(): string
{
return $this->loader->compiledQuery()->sqlStatement();
}

/**
* Load data tree from databases and linked loaders in a form of array.
Expand Down

0 comments on commit 60c4e2e

Please sign in to comment.