Skip to content

Commit

Permalink
Development
Browse files Browse the repository at this point in the history
- Removed depricated prefix method.
- Made table parameter in alias method optional.
- Removed .idea folder as it was causing issues.
  • Loading branch information
skipperbent committed Dec 2, 2017
1 parent 1676767 commit 26c4611
Show file tree
Hide file tree
Showing 17 changed files with 124 additions and 408 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ composer.phar
*~
/devel/
/coverage.clover
.idea/

### Composer template
/vendor/
Expand Down
9 changes: 0 additions & 9 deletions .idea/codeStyleSettings.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/composerJson.xml

This file was deleted.

43 changes: 0 additions & 43 deletions .idea/deployment.xml

This file was deleted.

15 changes: 0 additions & 15 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

72 changes: 0 additions & 72 deletions .idea/markdown-navigator.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/markdown-navigator/profiles_settings.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

98 changes: 0 additions & 98 deletions .idea/pecee-pixie.iml

This file was deleted.

14 changes: 0 additions & 14 deletions .idea/php-test-framework.xml

This file was deleted.

45 changes: 0 additions & 45 deletions .idea/php.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,21 @@ $result = $queryBuilder

### Select

#### Select from query

You can easily select items from another query by using

```php
$subQuery = $queryBuilder->table('person');
$builder = $queryBuilder->table($queryBuilder->subQuery($subQuery))->where('id', '=', 2);
```

Will produce the following output:

```sql
SELECT * FROM (SELECT * FROM `person`) WHERE `id` = 2
```

#### Select single field

```php
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"usmanhalalit/viocon": "1.0.1"
},
"require-dev": {
"phpunit/phpunit": "^6.4",
"phpunit/phpunit": "^6.0",
"mockery/mockery": "^1"
},
"autoload": {
Expand Down
Loading

0 comments on commit 26c4611

Please sign in to comment.