Skip to content

Please add stub for Schema::hasColumn() #579

Closed
@tacone

Description

@tacone

Hello, thank you for this package.

I'm using some lib that uses Schema::hasColumn($table, $field) but Jenssegers\Mongodb\Schema\Builder does not override it and I get the following stacktrace:

 in Builder.php line 102
at FatalErrorException->__construct() in HandleExceptions.php line 133
at HandleExceptions->fatalExceptionFromError() in HandleExceptions.php line 118
at HandleExceptions->handleShutdown() in HandleExceptions.php line 0
at Builder->getColumnListing() in Builder.php line 69
at Builder->hasColumn() in Field.php line 455

I suggest to just stub the method:

    public function hasColumn($table, $column)
    {
        return true;
    }

That worked very well in my case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions