Comments (2)
From where are you calling find
, and could you provide the full error message?
from laravel-mongodb.
I think I see your error, you have a syntax error in parent::construct($attributes, $exists);
, this should actually be parent::__construct($attributes);
.
Also, the attributes you are assigning will not be part of your model's attributes. If you want these values to be in your database as wel, add them to the $attributes
array before passing it to the parent's constructor.
from laravel-mongodb.
Related Issues (20)
- setAttribute does not accept key as integer HOT 1
- Error Call to undefined method MongoDB\Database::connect(). HOT 9
- `BadMethodCallException Method MongoDB\Laravel\Schema\Grammar::compileColumnListing does not exist.` version 4 HOT 1
- Fix cast issue HOT 9
- Custom datetime casting works, but not if you define custom format
- Call to undefined method compileWhereSub() HOT 4
- Support for morphTo relations broken in 4.1 HOT 4
- model id property returns the builder and not the id
- 🍃 Meet the MongoDB PHP Team HOT 1
- BelongsToMany sync does't use configured foreign key
- Did you mean Jenssegers\Mongodb\Query\Builder::compileWhereRaw() ? HOT 2
- id or _id not populated after calling create function #1820 HOT 8
- ObjectId in query builder not working HOT 6
- function addUpdatedAtColumn use array_merge bug HOT 1
- Cannot query with an array position HOT 2
- Add documentation on polymorphic relationships
- Fetching data via tinker HOT 2
- [Feature Request] Queryable Encryption or CSFLE HOT 1
- Call to undefined method MongoDB\Laravel\Query\Builder::compileWhereSub() HOT 2
- Is MongoDB support Laravel Octane (FrankenPHP server) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-mongodb.