Skip to content

synking fork #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 126 commits into from
Feb 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
a7f5d52
fix tests: assertObjectNotHasAttribute cannot test magic attributes (…
halaei Mar 17, 2018
459d7e8
applied pull request https://github.com/jenssegers/laravel-mongodb/pu…
hlorofos Apr 19, 2018
e1e95a5
get database from DSN string
hlorofos Apr 19, 2018
068a0af
bugfix: improper database configuration values used
hlorofos Apr 19, 2018
76a5dbc
bugfix: failover to database configuration values if no ability to ge…
hlorofos Apr 19, 2018
929120f
bugfix: failover to database configuration values if no ability to ge…
hlorofos Apr 19, 2018
ca095ff
Bugfix add collection with options
anthonyvancauwenberghe Apr 4, 2019
760e068
Add MustVerifyEmail
si2w Apr 5, 2019
5b42dcc
HybridRelations::morphTo() needs to respect $ownerKey
stephandesouza Sep 25, 2019
14170a2
Added StyleCI
rennokki Jan 20, 2020
20d05ad
Merge pull request #1915 from rennokki/feature/style-ci
Smolevich Jan 20, 2020
caaf2c2
Wip
rennokki Jan 20, 2020
4ec3442
wip
rennokki Jan 20, 2020
6e26aed
wip
rennokki Jan 20, 2020
a6229ce
Merge branch 'master' into refactor/readme
rennokki Jan 20, 2020
77cec75
wip [skip ci]
rennokki Jan 20, 2020
2b68b00
wip
rennokki Jan 20, 2020
29807a2
Merge branch 'refactor/readme' of github.com:rennokki/laravel-mongodb…
rennokki Jan 20, 2020
7e91b7a
wip
rennokki Jan 20, 2020
df2a4ef
Removed deprecated packages docs [skip ci]
rennokki Jan 20, 2020
93a9048
Merge branch 'refactor/readme' of github.com:rennokki/laravel-mongodb…
rennokki Jan 20, 2020
1bc273d
Removed Table of contents heading
rennokki Jan 20, 2020
e3a832d
Merge branch 'master' into patch-1
stephandesouza Jan 21, 2020
f3021c2
Add matrix for mongodb
Smolevich Jan 21, 2020
69e4da5
Merge pull request #1835 from stephandesouza/patch-1
Smolevich Jan 21, 2020
692461e
Merge branch 'master' of github.com:jenssegers/laravel-mongodb into a…
Smolevich Jan 21, 2020
fa264de
Add continue-on-error: true for send coveralls job
Smolevich Jan 22, 2020
3e5e9de
Merge pull request #1920 from Smolevich/add-matrix-mongodb
jenssegers Jan 22, 2020
1460b11
Fixed typos.
rennokki Jan 22, 2020
922680d
Moved upgrading to the bottom.
rennokki Jan 22, 2020
d9f9fc7
Fixed the failed configuration (#1830)
rennokki Jan 22, 2020
5fcac25
Merge branch 'master' into refactor/readme
rennokki Jan 22, 2020
18c62a3
Merge pull request #1 from jenssegers/master
rennokki Jan 22, 2020
44ee19c
Better names for steps
rennokki Jan 22, 2020
6ba958c
Upload code coverage to codecov
rennokki Jan 22, 2020
46a1d6d
wip
rennokki Jan 22, 2020
24654ae
Update using cedx/coveralls, remove php-coveralls/php-coveralls
Smolevich Jan 22, 2020
30e2000
Merge pull request #1922 from rennokki/refactor/coveralls-to-codecov
jenssegers Jan 23, 2020
1b96499
Merge branch 'master' of github.com:jenssegers/laravel-mongodb into a…
Smolevich Jan 23, 2020
9411974
Merge branch 'master' into refactor/readme
rennokki Jan 23, 2020
0c4f207
wip
rennokki Jan 23, 2020
3f6b850
wip db authentication
rennokki Jan 23, 2020
49e622e
Fix coverage command
Smolevich Jan 23, 2020
c5c0f8b
wip as string.
rennokki Jan 24, 2020
2b1d008
Merge branch 'master' into hotfix/mongo-version-in-ci
rennokki Jan 24, 2020
dbb231e
Merge pull request #1924 from rennokki/hotfix/mongo-version-in-ci
jenssegers Jan 24, 2020
37942f8
Merge pull request #1923 from Smolevich/add-use-new-library-for-cover…
jenssegers Jan 24, 2020
9eea13d
Merge branch 'master' into refactor/readme
rennokki Jan 24, 2020
11fb8ea
Revert to 'database'
rennokki Jan 24, 2020
291b4d3
Merge pull request #1917 from rennokki/refactor/readme
Smolevich Jan 24, 2020
e843e0d
Add MorphMany relation to replaced whereIn method.
AsemAlalami Jun 29, 2019
92851a2
Add style fixes
Majed6 Jan 21, 2020
20fd7b0
Merge pull request #1871 from Majed6/master
Smolevich Jan 27, 2020
bf4fe79
HasOne / HasMany must respect $localKey parameter
stephandesouza Jan 29, 2020
343e7bb
Merge branch 'master' into fix-hasmany
stephandesouza Jan 29, 2020
cb725ad
Merge pull request #5 from si2w/patch-3
divine Jan 30, 2020
b18e97b
Changed class order
divine Jan 30, 2020
9ebcc5a
Merge pull request #1837 from stephandesouza/fix-hasmany
Smolevich Jan 30, 2020
326e3a8
Merge branch 'master' into pr_1746
divine Jan 30, 2020
5cf5816
Merge pull request #1933 from divine/pr_1746
Smolevich Jan 30, 2020
a2425c5
Merge pull request #6 from halaei/fix-test-asser-object-not-has-attri…
divine Jan 30, 2020
2efa5af
Merge pull request #1934 from divine/pr_1468
Smolevich Jan 30, 2020
d26a192
Fix Regex example
divine Jan 30, 2020
c25900b
Merge pull request #1935 from divine/pr_1886
Smolevich Jan 31, 2020
2c95ab7
allow setting hint option on querybuilder
divine Jan 31, 2020
8a51887
Remove depereced arraysubset
divine Jan 31, 2020
c55d42d
Merge pull request #1939 from divine/pr_1556
Smolevich Jan 31, 2020
e2e5917
Add explanation for database migration resets
divine Jan 31, 2020
9f1b581
Add explanation for not working classess
divine Feb 4, 2020
0bbb404
update clarification for database migration
divine Feb 4, 2020
ef147ea
Merge pull request #1941 from divine/pr_1476
Smolevich Feb 5, 2020
ca0f710
Fix dropIndex for compound indexes with sorting order
mauri870 Dec 11, 2019
9442df1
Fix truncate on models
divine Feb 8, 2020
4e92dcc
Add tests for model truncate
divine Feb 8, 2020
79cb569
Merge pull request #1949 from divine/fix_truncate_on_models
Smolevich Feb 8, 2020
e1135e8
[GF] Added issue template files
Feb 8, 2020
f7f326b
[GF] Add config for codacy
Feb 8, 2020
62f8cff
Merge pull request #1951 from Giacomo92/add-config-for-codacy
Smolevich Feb 8, 2020
7bca359
Merge branch 'master' into add-issues-templates
Feb 8, 2020
c6313cb
Merge pull request #1950 from Giacomo92/add-issues-templates
Smolevich Feb 8, 2020
9b062ac
Merge branch 'master' into drop-compound-index
Smolevich Feb 8, 2020
4d81b40
Merge pull request #1885 from mauri870/drop-compound-index
Smolevich Feb 8, 2020
40058c7
Merge pull request #16 from deviouspk/patch-1
divine Feb 9, 2020
e5d0dd7
Add collection info and tests
divine Feb 9, 2020
1ffc7a2
Merge branch 'pr_1491' into pr/17
divine Feb 9, 2020
5cb9a01
Remove duplicate dsn
divine Feb 9, 2020
d0c7b4d
Merge pull request #18 from divine/pr/17
divine Feb 9, 2020
c4a9162
Add correct docblock
divine Feb 9, 2020
3f120e8
Move coveralls to dev dependency
divine Feb 9, 2020
1c8a84b
Merge pull request #1955 from divine/move_coveralls_to_dev
Smolevich Feb 10, 2020
0cf70e8
Merge branch 'master' into pr_1745
divine Feb 10, 2020
0f5b177
Merge branch 'master' into pr_1491
divine Feb 10, 2020
89fe91f
Merge pull request #1954 from divine/pr_1491
Smolevich Feb 10, 2020
cfe8e92
Merge branch 'master' into pr_1745
Smolevich Feb 10, 2020
af8c275
[GF] Add docs, use collection for slice operation, fix return type an…
Feb 11, 2020
e41f69a
Merge branch 'master' into pr_1145
Feb 11, 2020
1437a2f
[GF] Fix style CI
Feb 11, 2020
ca83a9b
[GF] Optmize import
Feb 11, 2020
70c7263
[GF] Fix resolveCurrentPage()
Feb 12, 2020
c0966a9
Merge pull request #1959 from Giacomo92/pr_1145
Smolevich Feb 14, 2020
d5a7bac
Fix format exception in failed jobs
divine Feb 14, 2020
3c7d4a4
[GF] Changed carbon import
Feb 15, 2020
6cea8aa
Merge pull request #1964 from Giacomo92/pr_1378
jenssegers Feb 15, 2020
bf1e25a
Merge branch 'master' into pr_1745
divine Feb 17, 2020
2dcfa5b
Add getCollection function and little improvements
divine Feb 17, 2020
e305752
Merge branch 'master' into fix_failed_job_exception
Smolevich Feb 17, 2020
ae88c82
Refactor getCollection and hasCollection
divine Feb 17, 2020
3f5b1dc
Merge pull request #1953 from divine/pr_1745
Smolevich Feb 17, 2020
f9006bd
[GF] UTCDateTime conversion now includes milliseconds
Feb 18, 2020
fd651f5
Merge branch 'master' into pr_1534_1
Feb 18, 2020
f3f1441
[GF] Removed unused import
Feb 18, 2020
6b291d7
Merge pull request #1966 from Giacomo92/pr_1534_1
Smolevich Feb 23, 2020
6121afa
Merge branch 'master' into fix_failed_job_exception
divine Feb 23, 2020
5438286
Merge pull request #1961 from divine/fix_failed_job_exception
Smolevich Feb 23, 2020
91dc749
Fix correct import class for DB
divine Feb 23, 2020
2bc3b48
Merge pull request #1968 from divine/fix_db_class_import
Smolevich Feb 24, 2020
b104c4d
Add MIT license
divine Feb 24, 2020
50e75d6
Merge pull request #1969 from divine/license
Smolevich Feb 25, 2020
d9375e3
Refactor and fix default database detection from dsn or database config
divine Feb 26, 2020
f2ce3d4
Fix styleci
divine Feb 26, 2020
22a9e3b
Merge pull request #1971 from divine/refactor_and_fix_db_selection
Smolevich Feb 26, 2020
52c9fae
Refactor tests as suggested by @Smolevich
divine Feb 26, 2020
87dfecf
Fix incorrect collection
divine Feb 26, 2020
c6d36d4
Remove unused call
divine Feb 26, 2020
cf6326e
Remove unnecessary class name
divine Feb 26, 2020
12adb39
Merge pull request #1972 from divine/refactor_connection_tests
Smolevich Feb 26, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude_paths:
- '.github/**'
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: "Bug report"
about: 'Report errors or unexpected behavior.'
---

- Laravel-mongodb Version: #.#.#
- PHP Version: #.#.#
- Database Driver & Version:

### Description:

### Steps to reproduce
1.
2.
3.

### Expected behaviour
Tell us what should happen

### Actual behaviour
Tell us what happens instead

<details><summary><b>Logs</b>:</summary>
Insert log.txt here (if necessary)
</details>
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE-REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest an idea.
title: "[Feature Request] "

---

### Is your feature request related to a problem?
A clear and concise description of what the problem is.

### Describe the solution you'd like
A clear and concise description of what you want to happen.

### Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

### Additional context
Add any other context or screenshots about the feature request here.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/QUESTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Question
about: Ask a question.
title: "[Question] "
labels: 'question'
assignees: ''

---
26 changes: 15 additions & 11 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ jobs:
runs-on: ${{matrix.os}}
strategy:
matrix:
php: [7.1, 7.2, 7.3, 7.4]
php: ['7.1', '7.2', '7.3', '7.4']
os: ['ubuntu-latest']
mongodb: ['3.6', '4.0', '4.2']
services:
mongo:
image: mongo
image: mongo:${{ matrix.mongodb }}
ports:
- 27017:27017
mysql:
Expand All @@ -26,20 +27,20 @@ jobs:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: 'unittest'
MYSQL_ROOT_PASSWORD:
name: PHP ${{ matrix.php }} Test ${{ matrix.env }}
name: PHP v${{ matrix.php }} with Mongo v${{ matrix.mongodb }}

steps:
- uses: actions/checkout@v1
- name: Show php version
- name: Show PHP version
run: php${{ matrix.php }} -v && composer -V
- name: Debug if needed
- name: Show Docker version
run: if [[ "$DEBUG" == "true" ]]; then docker version && env; fi
env:
DEBUG: ${{secrets.DEBUG}}
- name: Get Composer Cache Directory
- name: Download Composer cache dependencies from cache
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
- name: Cache Composer dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
Expand All @@ -48,15 +49,18 @@ jobs:
- name: Install dependencies
run: |
composer install --no-interaction
- name: Generating code coverage
- name: Run tests
run: |
mkdir -p build/logs
./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
./vendor/bin/phpunit --coverage-clover coverage.xml
env:
MONGO_HOST: 0.0.0.0
MYSQL_HOST: 0.0.0.0
MYSQL_PORT: 3307
- name: Send coveralls
run: vendor/bin/php-coveralls -v
run: vendor/bin/coveralls coverage.xml
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
1 change: 1 addition & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
preset: laravel
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Jens Segers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading