primaryKey = 'CodClienteInternet'

This commit is contained in:
paoloar77
2024-07-26 16:52:04 +02:00
parent 355f86980b
commit 79695e9046
2 changed files with 12 additions and 7 deletions

View File

@@ -6,8 +6,9 @@ use Illuminate\Database\Eloquent\Model;
class Clientegm extends Model
{
protected $primaryKey = null;
public $incrementing = false;
protected $primaryKey = 'CodClienteInternet'; // Imposta la chiave primaria corretta
public $incrementing = true; // Indica che è auto-incrementante
//protected $connection = 'mysql_test';
protected $connection = 'sqlsrv_test';
protected $table = 'T_WOO_Clienti';