Skip to content
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

Fatal error accessing fromDateTime() #13

Closed
leekaiwei opened this issue Aug 1, 2013 · 4 comments
Closed

Fatal error accessing fromDateTime() #13

leekaiwei opened this issue Aug 1, 2013 · 4 comments

Comments

@leekaiwei
Copy link
Contributor

After upgrading the whole system breaks with error:

Access level to Jenssegers\Mongodb\Model::fromDateTime() must be public (as in class Illuminate\Database\Eloquent\Model) 
leekaiwei added a commit to leekaiwei/Laravel-MongoDB that referenced this issue Aug 1, 2013
@jenssegers
Copy link
Contributor

The fromDateTime method is protected in the original code? https://github.com/illuminate/database/blob/master/Eloquent/Model.php#L2021

@jenssegers
Copy link
Contributor

This seems to be an issue for Laravel 4.0.x installations, but not on 4.1.x.

@leekaiwei
Copy link
Contributor Author

Well currently, my system is using 4.0.x and 4.1.x is not out yet. Perhaps you could tag a version for 4.0.x and one for 4.1.x? Or maybe change the method to public as this will be compatible with both 4.0.x and 4.1.x?

@jenssegers
Copy link
Contributor

I will to the latter. Once 4.1 becomes stable I might tag a 4.0 version and change it back.

jenssegers added a commit that referenced this issue Aug 1, 2013
alcaeus pushed a commit to alcaeus/laravel-mongodb that referenced this issue Aug 16, 2023
…$not` (mongodb#13)

`Query\Builder::whereNot` was simply ignoring the "not" and breaking the built query.
alcaeus pushed a commit to alcaeus/laravel-mongodb that referenced this issue Aug 16, 2023
…$not` (mongodb#13) (mongodb#15)

`Query\Builder::whereNot` was simply ignoring the "not" and breaking the built query.
alcaeus pushed a commit that referenced this issue Aug 22, 2023
…$not` (#13)

`Query\Builder::whereNot` was simply ignoring the "not" and breaking the built query.
alcaeus pushed a commit that referenced this issue Aug 22, 2023
…$not` (#13) (#15)

`Query\Builder::whereNot` was simply ignoring the "not" and breaking the built query.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants