Skip to content

Relationships stopped working #2258

Answered by MeerKatDev
MeerKatDev asked this question in Q&A
Discussion options

You must be logged in to vote

It's hard to guess for me too, so I'm asking here because MAYBE, but only MAYBE, someone (that wrote the code of this library) could at least give me hints on where I could check, instead of telling me "Pretty vague and incomplete information." - so here the more complete available information:

use Backpack\CRUD\app\Models\Traits\CrudTrait;
use Jenssegers\Mongodb\Eloquent\Model;

class SubProduct extends Model
{
    use CrudTrait;

    protected $table = 'subproducts';

    protected $guarded = ['id'];
    protected $fillable = [
        'code',
        'desc',
        'object',
 ...
    ];
    
    public static function boot()
    {
        parent::boot();
        static::deleting(funct…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MeerKatDev
Comment options

Answer selected by divine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #2256 on May 20, 2021 21:14.