Skip to content

Soft Delete #90

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

Closed
brunocascio opened this issue Dec 14, 2013 · 4 comments
Closed

Soft Delete #90

brunocascio opened this issue Dec 14, 2013 · 4 comments

Comments

@brunocascio
Copy link

SoftDelete is implemented?

I have:

Schema::create('comments', function($t)
        {
            $t->softDeletes();
        });
class Comment extends Moloquent {

    protected $collection = 'comments';

    public $timestamps = true;

    protected $softDelete = true;

But, running migrate, get this error:

PHP Fatal error:  Call to undefined method Jenssegers\Mongodb\Schema\Blueprint::nullable() in /home/demon/mydiary/vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php on line 635
@jenssegers
Copy link
Contributor

You don't need to run migrations to enable soft deletion. But I will fix the nullable issue so that the migration will pass.

@brunocascio
Copy link
Author

Great!, I'll wait for the fix. Thanks for always helping.

@jenssegers
Copy link
Contributor

Try again with the latest version, it should work now :)

@brunocascio
Copy link
Author

Yes it's work! :) Thanks jens!

@grayxr grayxr mentioned this issue Jan 5, 2014
mnphpexpert added a commit to mnphpexpert/laravel-mongodb that referenced this issue Sep 2, 2024
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