spacedog4
1 year ago
339
26
Laravel

Relationship Maximum execution time of 60 seconds exceeded

Posted 1 year ago by spacedog4

I'm getting this error after trying to get a relationship

Relationship Maximum execution time of 60 seconds exceeded

// app\Extensions\PessoasusuarioProvider.php


public function retrieveById($identifier)
{
    dd(Pessoasusuario::first()->filial);
}

the stranger thing is that this is a retrieve from a authentication, and before runing the retrieveById it retrieveByCredential where I do the same code and doenst throw the error

NOTICE: I'm using compoships cause my DB has multiples primary keys

    // app\Pessoasusuario.php

    public function filial()
    {
        return $this->belongsTo(Filial::class, [
            'codigoconcentrador',
            'codigoempresa',
            'codigofilial',
        ], [
            'codigoconcentrador',
            'codigoempresa',
            'codigofilialret',
        ]);
    }

Please sign in or create an account to participate in this conversation.