-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php namespace ClanCats\Hydrahon\Query\Sql; | ||
|
||
/** | ||
* Exists query | ||
* | ||
* Allows building queries like "SELECT EXISTS(select * from showtimes) as hasShows" | ||
** | ||
* @package Hydrahon | ||
* @copyright 2015 Mario Döring | ||
*/ | ||
|
||
use ClanCats\Hydrahon\BaseQuery; | ||
|
||
class Exists extends BaseQuery | ||
{ | ||
/** | ||
* The select query we want to check if | ||
* any results exists | ||
* | ||
* @var Select | ||
*/ | ||
protected $select = null; | ||
|
||
/** | ||
* Sets the select query | ||
* | ||
* @param Select $select | ||
* @return void | ||
*/ | ||
public function setSelect(Select $select) | ||
{ | ||
$this->select = $select; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters