We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to write a test for this
public function challengeoptions() { return $this->belongsToMany('Challengeoptions') ->withPivot('donepct') ->withTimestamps(); }
But when trying to use assertBelongsToMany() I'm just getting the error:
PHP Fatal error: Call to a member function withPivot() on a non-object in....
Anyone know a way to fix it, or to test it another way? :)
The text was updated successfully, but these errors were encountered:
I get the same error because my relationships are something like this:
public function midias() { return $this->hasMany('Midia', 'id_conteudo') ->where('model', '=', 'Blog') ->orderBy('ordem', 'ASC'); }
Sorry, something went wrong.
Just added pull request #52 that fixes this. :)
No branches or pull requests
I'm trying to write a test for this
But when trying to use assertBelongsToMany() I'm just getting the error:
Anyone know a way to fix it, or to test it another way? :)
The text was updated successfully, but these errors were encountered: